Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius
diff options
context:
space:
mode:
authorSimon Poirier <simpoir@Eridani.(none)>2009-09-04 02:07:24 (GMT)
committer Simon Poirier <simpoir@Eridani.(none)>2009-09-04 02:07:24 (GMT)
commitf4091840319062be842fb9d178cd425846989660 (patch)
tree76337db8fdef50137f6ecd565775e9b0d9dfdaeb /tutorius
parenta188dac0527803edb46eabce04100f1c741a96f3 (diff)
Fix icons to comply to sugar standards.
Set a bundler env path to be conditional as it was broken on SoaS.
Diffstat (limited to 'tutorius')
-rw-r--r--tutorius/bundler.py4
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")