Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/env.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-12-20 12:43:54 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-12-20 12:43:54 (GMT)
commit99cce220cde2710f9ba58847f4e49eede99f89e2 (patch)
tree765593c2d25cd217f0d85a003511c4d4c636f863 /sugar/env.py
parentab3535e6fd3e29b25025845deceae6c7355996c5 (diff)
Get the default type from env, clean stuff a bit
Diffstat (limited to 'sugar/env.py')
-rw-r--r--sugar/env.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sugar/env.py b/sugar/env.py
index 1c7164c..09511f4 100644
--- a/sugar/env.py
+++ b/sugar/env.py
@@ -36,6 +36,12 @@ def get_bundle_service_name():
else:
return None
+def get_bundle_default_type():
+ if os.environ.has_key('SUGAR_BUNDLE_DEFAULT_TYPE'):
+ return os.environ['SUGAR_BUNDLE_DEFAULT_TYPE']
+ else:
+ return None
+
def get_profile_path():
if os.environ.has_key('SUGAR_PROFILE'):
profile_id = os.environ['SUGAR_PROFILE']