From 956256313a7a5401c45685b756b7cde59db9d209 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 18 Dec 2006 12:56:41 +0000 Subject: Get the activity type from env, rather than requiring set_type --- (limited to 'sugar/env.py') 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'] -- cgit v0.9.1