diff options
author | Sascha Silbe <sascha@silbe.org> | 2009-08-25 19:12:40 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha@silbe.org> | 2009-08-25 19:12:40 (GMT) |
commit | c9e63eb8eadb0b133b88e9feb1ca48b75d959a7c (patch) | |
tree | 3c62d81817405896977ae5e8ccfc0be5b5da7861 /src/sugar/env.py | |
parent | ecdaf6b795550158273ba3a0d582f7ff2bec3187 (diff) |
PEP8 white space and long line fixes
Diffstat (limited to 'src/sugar/env.py')
-rw-r--r-- | src/sugar/env.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sugar/env.py b/src/sugar/env.py index 91e91d3..655d18d 100644 --- a/src/sugar/env.py +++ b/src/sugar/env.py @@ -22,12 +22,14 @@ STABLE. import os + def is_emulator(): if os.environ.has_key('SUGAR_EMULATOR'): if os.environ['SUGAR_EMULATOR'] == 'yes': return True return False + def get_profile_path(path=None): if os.environ.has_key('SUGAR_PROFILE'): profile_id = os.environ['SUGAR_PROFILE'] @@ -46,6 +48,7 @@ def get_profile_path(path=None): else: return base + def get_logs_path(path=None): base = os.environ.get('SUGAR_LOGS_DIR', get_profile_path('logs')) if path != None: @@ -53,8 +56,10 @@ def get_logs_path(path=None): else: return base + def get_user_activities_path(): return os.path.expanduser('~/Activities') + def get_user_library_path(): return os.path.expanduser('~/Library') |