Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-05-22 16:09:11 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-05-22 16:09:11 (GMT)
commit6914ec4e436e247d3d1cf6aeb0385f8377cf4cf3 (patch)
treea8f06bdb97d2ca680e0efe69eadf6540a935ff90 /bin
parenta77bea18582f224d6ccf0fa0835182064802756c (diff)
parentb450396b13cb4bf7d60106a7c03ac63a58ba7f01 (diff)
Merge http://projects.collabora.co.uk/~smcv/git/datastore
Conflicts: src/olpc/datastore/dbus_helpers.py
Diffstat (limited to 'bin')
-rwxr-xr-xbin/datastore3
-rwxr-xr-xbin/datastore-service3
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/datastore b/bin/datastore
index 6ca5e39..52d5bd5 100755
--- a/bin/datastore
+++ b/bin/datastore
@@ -3,7 +3,8 @@ from ore.main import Application
from olpc.datastore import DataStore
import os, signal
-base_dir = os.path.expanduser("~/.sugar/default")
+profile = os.environ.get('SUGAR_PROFILE', 'default')
+base_dir = os.path.join(os.path.expanduser('~'), '.sugar', profile)
repo_dir = os.path.join(base_dir, 'datastore')
db_dir = "sqlite:///%s/datastore.db" % repo_dir
diff --git a/bin/datastore-service b/bin/datastore-service
index e37487c..93f9167 100755
--- a/bin/datastore-service
+++ b/bin/datastore-service
@@ -7,7 +7,8 @@ from olpc.datastore import DataStore, DS_LOG_CHANNEL
import logging
# Path handling
-base_dir = os.path.expanduser("~/.sugar/default")
+profile = os.environ.get('SUGAR_PROFILE', 'default')
+base_dir = os.path.join(os.path.expanduser('~'), '.sugar', profile)
repo_dir = os.path.join(base_dir, 'datastore')
db_dir = "sqlite:///%s/datastore.db" % repo_dir