Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/Config.py b/common/Config.py
index 7fe8371..9e2c069 100644
--- a/common/Config.py
+++ b/common/Config.py
@@ -22,23 +22,23 @@ else:
logging.debug("Debug Level %d" % (DEBUG))
+#PATHS
+
TAM_TAM_ROOT = get_bundle_path()
+INSTANCE_DIR = os.path.join(get_activity_root(), 'instance')
+TMP_DIR = os.path.join(get_activity_root(), 'tmp')
+
logging.debug('INFO: loaded TAMTAM_ROOT=%s' % TAM_TAM_ROOT)
-#PATHS
if XO:
- INSTANCE_DIR = os.path.join(get_activity_root(), 'instance')
DATA_DIR = os.path.join(get_activity_root(), 'data')
SNDS_INFO_DIR = os.path.join(get_activity_root(), 'data', 'snds_info')
- TMP_DIR = os.path.join(get_activity_root(), 'tmp')
FILES_DIR = os.path.join(TAM_TAM_ROOT, "..", "TamTamEdit.activity", "common", "Resources")
SOUNDS_DIR = os.path.join(FILES_DIR, "Sounds", "")
IMAGE_ROOT = os.path.join(FILES_DIR, "Images", "")
else:
- INSTANCE_DIR = os.path.join(os.getenv('HOME'), '.tamtam')
DATA_DIR = os.path.join(os.getenv('HOME'), '.tamtam')
SNDS_INFO_DIR = os.path.join(os.getenv('HOME'), '.tamtam', 'snds_info')
- TMP_DIR = os.path.join(get_activity_root(), 'tmp')
FILES_DIR = "/usr/share/tamtam/"
SOUNDS_DIR = "/usr/share/tamtam/Sounds/"
IMAGE_ROOT = '/usr/share/tamtam/Images/'