Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/env.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-09 19:18:54 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-09 19:18:54 (GMT)
commit46d128c85a21bf48131de921d1a30177ea1441da (patch)
tree1df473c3e273952de7767aab19f3cda91c8b2c69 /sugar/env.py
parentb44a2916ba410366078fd2f8dc5ddb10b3c4e65a (diff)
Cleanup the logs stuff a bit.
Diffstat (limited to 'sugar/env.py')
-rw-r--r--sugar/env.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sugar/env.py b/sugar/env.py
index e3e0a51..65b8b0c 100644
--- a/sugar/env.py
+++ b/sugar/env.py
@@ -64,6 +64,13 @@ def get_profile_path(path=None):
else:
return base
+def get_logs_path(path=None):
+ base = get_profile_path('logs')
+ if path != None:
+ return os.path.join(base, path)
+ else:
+ return base
+
def get_user_activities_path():
return os.path.expanduser('~/Activities')