diff options
author | Nat <natcl@hotmail.com> | 2007-09-21 19:43:52 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-09-21 19:43:52 (GMT) |
commit | 2a6d84403ecc5ee65558c10df90c54e648fc2655 (patch) | |
tree | 1b66112d5b6ca58a0cf06a65efa3f9a32e5f5083 /common/Config.py | |
parent | be511acdd02b609042ceef2f77be5ef79571ca03 (diff) |
Comme disait l'amphibien nul ne le sait
Diffstat (limited to 'common/Config.py')
-rw-r--r-- | common/Config.py | 13 |
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' |