Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Config.py
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2008-07-24 14:44:50 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2008-07-24 14:44:50 (GMT)
commite01fa341f97822740a7109a9a094750d47c4197e (patch)
treed677c2d5dcdc5cfe6053f205762839bb89c81a49 /common/Config.py
parentcfeb3f1b379cfef6bb5748ffc2a4346b6514c929 (diff)
RadioButton and path fix
Diffstat (limited to 'common/Config.py')
-rw-r--r--common/Config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/Config.py b/common/Config.py
index 474bd82..c620627 100644
--- a/common/Config.py
+++ b/common/Config.py
@@ -30,6 +30,7 @@ def logwrite(level, msg):
TAM_TAM_ROOT = get_bundle_path()
print 'INFO: loaded TAMTAM_ROOT=%s' % TAM_TAM_ROOT
+EDIT_RESOURCES = os.path.join(TAM_TAM_ROOT, "../TamTamEdit.activity/common/Resources")
FILES_DIR = TAM_TAM_ROOT + "/common/Resources"
#PATHS
@@ -37,8 +38,8 @@ if os.path.isdir("/usr/share/tamtam/Sounds"):
SOUNDS_DIR = "/usr/share/tamtam/Sounds"
LIB_DIR = "/usr/share/tamtam"
else:
- SOUNDS_DIR = "/home/olpc/Activities/TamTamEdit.activity/common/Resources/Sounds"
- LIB_DIR = "/home/olpc/Activities/TamTamEdit.activity/common/Resources"
+ SOUNDS_DIR = os.path.join(EDIT_RESOURCES, "Sounds")
+ LIB_DIR = EDIT_RESOURCES
if SugarMode == True:
if not os.path.isdir(os.path.join(get_activity_root(), 'data', 'snds_info')):
@@ -101,7 +102,7 @@ LANGUAGE = 'En'
if os.path.isdir("/usr/share/tamtam/Images"):
IMAGE_ROOT = '/usr/share/tamtam/Images/'
else:
- IMAGE_ROOT = "/home/olpc/Activities/TamTamEdit.activity/common/Resources/Images/"
+ IMAGE_ROOT = os.path.join(EDIT_RESOURCES, "Images") + '/'
MAIN_WINDOW_PADDING = 5
BG_COLOR = '#404040'