Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Config.py
diff options
context:
space:
mode:
Diffstat (limited to 'common/Config.py')
-rw-r--r--common/Config.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/common/Config.py b/common/Config.py
index 3d2987b..8d99cc3 100644
--- a/common/Config.py
+++ b/common/Config.py
@@ -24,9 +24,13 @@ print 'INFO: loaded TAMTAM_ROOT=%s' % TAM_TAM_ROOT
#PATHS
-SOUNDS_DIR = "/usr/share/tamtam/Sounds"
+if os.path.isdir("/usr/share/tamtam/Sounds"):
+ SOUNDS_DIR = "/usr/share/tamtam/Sounds"
+ LIB_DIR = "/usr/share/tamtam"
+else:
+ SOUNDS_DIR = "/usr/share/activities/TamTamEdit.activity/common/Resources/Sounds"
+ LIB_DIR = "/usr/share/activities/TamTamEdit.activity/common/Resources"
FILES_DIR = TAM_TAM_ROOT + "/common/Resources"
-LIB_DIR = "/usr/share/tamtam"
TUNE_DIR='/'
SYNTH_DIR='/'
if SugarMode == True:
@@ -378,7 +382,10 @@ UNLOAD_TABLES_COMMAND = \
#################
LANGUAGE = 'En'
-IMAGE_ROOT = '/usr/share/tamtam/Images/'
+if os.path.isdir("/usr/share/tamtam/Images"):
+ IMAGE_ROOT = '/usr/share/tamtam/Images/'
+else:
+ IMAGE_ROOT = "/usr/share/activities/TamTamEdit.activity/common/Resources/Images/"
MAIN_WINDOW_PADDING = 5
BG_COLOR = '#404040'