diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-01-11 10:20:08 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-01-11 10:20:08 (GMT) |
commit | 297381cad771c3ac9c728ae784e8ea9c325184c4 (patch) | |
tree | 18bccae2bc2f0eee59936dadaab9edc5a622e018 /sugar/env.py | |
parent | dda16d83c0fe754eb697c5ceb0bb952bfd15a70f (diff) |
Basic implementation of the shutdown graphics
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 09511f4..14d8d70 100644 --- a/sugar/env.py +++ b/sugar/env.py @@ -30,6 +30,12 @@ def get_bundle_path(): else: return None +def is_emulator(): + if os.environ.has_key('SUGAR_EMULATOR'): + if os.environ['SUGAR_EMULATOR'] == 'yes': + return True + return False + def get_bundle_service_name(): if os.environ.has_key('SUGAR_BUNDLE_SERVICE_NAME'): return os.environ['SUGAR_BUNDLE_SERVICE_NAME'] |