diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-18 12:56:41 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-18 12:56:41 (GMT) |
commit | 956256313a7a5401c45685b756b7cde59db9d209 (patch) | |
tree | 7af7fc65fc36fbe44b64591142628a0c292c8853 /sugar/env.py | |
parent | e0bd5d1df41f1d77ae8bd66c3c2a0ab9143595cb (diff) |
Get the activity type from env, rather than requiring set_type
Diffstat (limited to 'sugar/env.py')
-rw-r--r-- | sugar/env.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sugar/env.py b/sugar/env.py index 6b59ab5..1c7164c 100644 --- a/sugar/env.py +++ b/sugar/env.py @@ -30,6 +30,12 @@ def get_bundle_path(): else: return None +def get_bundle_service_name(): + if os.environ.has_key('SUGAR_BUNDLE_SERVICE_NAME'): + return os.environ['SUGAR_BUNDLE_SERVICE_NAME'] + else: + return None + def get_profile_path(): if os.environ.has_key('SUGAR_PROFILE'): profile_id = os.environ['SUGAR_PROFILE'] |