Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Config.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2008-12-18 20:41:32 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2008-12-19 23:50:57 (GMT)
commit953ad5539b8f0dd44431c75c765c2d5eba81d73c (patch)
tree4968527b5272d99aef9cbca4c6ab636698c3bc32 /common/Config.py
parentebe5a869f2a3304d7ab3148bd39a8bfd023ff84c (diff)
use TMP_DIR for temporary files
Diffstat (limited to 'common/Config.py')
-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/'