diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-09-04 18:41:04 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-09-04 18:41:04 (GMT) |
commit | 4f6b26d3e1decb3061dc99db9c4a47c74ac83d0b (patch) | |
tree | ac35298f33f8a30e8afef5aa3dbdf301a7e5d537 /tutorius/bundler.py | |
parent | 2d8cf484e7fd975b94051f1985294986392c2328 (diff) | |
parent | 70c4e9b8a3c444c9c411a514ede416c50dce5c6f (diff) |
Merge branch 'master' of git://git.sugarlabs.org/tutorius/mainline
Diffstat (limited to 'tutorius/bundler.py')
-rw-r--r-- | tutorius/bundler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tutorius/bundler.py b/tutorius/bundler.py index 8e7fc3d..8808d93 100644 --- a/tutorius/bundler.py +++ b/tutorius/bundler.py @@ -33,7 +33,9 @@ from ConfigParser import SafeConfigParser # this is where user installed/generated tutorials will go def _get_store_root(): - return os.path.join(os.getenv("HOME"),".sugar",os.getenv("SUGAR_PROFILE"),"tutorius","data") + profile_name = os.getenv("SUGAR_PROFILE") or "default" + return os.path.join(os.getenv("HOME"), + ".sugar",profile_name,"tutorius","data") # this is where activity bundled tutorials should be, under the activity bundle def _get_bundle_root(): return os.path.join(os.getenv("SUGAR_BUNDLE_PATH"),"data","tutorius","data") |