diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-18 12:48:34 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-18 12:48:34 (GMT) |
commit | 154a0e91ffece83fd1e7ef836c6faaa83166e93c (patch) | |
tree | 8c9ccfd4326cd646352f29a9389c3d3ebd401d49 /sugar/env.py | |
parent | 3fd29884f952ea96fcc003b9611c83612759a64b (diff) |
Create ~/Activities only when necessary
Diffstat (limited to 'sugar/env.py')
-rw-r--r-- | sugar/env.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sugar/env.py b/sugar/env.py index 4938940..2acdcb9 100644 --- a/sugar/env.py +++ b/sugar/env.py @@ -53,10 +53,7 @@ def get_profile_path(path=None): return base def get_user_activities_path(): - path = os.path.expanduser('~/Activities') - if not os.path.isdir(path): - os.mkdir(path) - return path + return os.path.expanduser('~/Activities') def get_bin_path(path=None): return _get_prefix_path('bin', path) |