From f4091840319062be842fb9d178cd425846989660 Mon Sep 17 00:00:00 2001 From: Simon Poirier Date: Fri, 04 Sep 2009 02:07:24 +0000 Subject: Fix icons to comply to sugar standards. Set a bundler env path to be conditional as it was broken on SoaS. --- diff --git a/data/icons/message-bubble.svg b/data/icons/message-bubble.svg index c81e5bd..e815d13 100644 --- a/data/icons/message-bubble.svg +++ b/data/icons/message-bubble.svg @@ -1,70 +1,21 @@ - - - - - + + +]> + + - - + + - + image/svg+xml - + - - - + + + - + \ No newline at end of file diff --git a/data/icons/tutortool.svg b/data/icons/tutortool.svg index 3965f85..bb28f04 100644 --- a/data/icons/tutortool.svg +++ b/data/icons/tutortool.svg @@ -1,72 +1,21 @@ - - - - - + + +]> + + - - + + - + image/svg+xml - + - - - + + + - + \ No newline at end of file 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") -- cgit v0.9.1