diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-05-22 16:09:11 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-05-22 16:09:11 (GMT) |
commit | 6914ec4e436e247d3d1cf6aeb0385f8377cf4cf3 (patch) | |
tree | a8f06bdb97d2ca680e0efe69eadf6540a935ff90 /bin/datastore-service | |
parent | a77bea18582f224d6ccf0fa0835182064802756c (diff) | |
parent | b450396b13cb4bf7d60106a7c03ac63a58ba7f01 (diff) |
Merge http://projects.collabora.co.uk/~smcv/git/datastore
Conflicts:
src/olpc/datastore/dbus_helpers.py
Diffstat (limited to 'bin/datastore-service')
-rwxr-xr-x | bin/datastore-service | 3 |
1 files changed, 2 insertions, 1 deletions
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 |