Add a SUGAR_ACTIVITIES_PATH environment variable

Useful for tests but perhaps for other stuff too.
This commit is contained in:
Daniel Narvaez 2012-12-06 23:20:14 +01:00
parent 617c11a078
commit 65560b0b94

View File

@ -51,8 +51,8 @@ def get_logs_path(path=None):
def get_user_activities_path(): def get_user_activities_path():
return os.path.expanduser('~/Activities') return os.environ.get("SUGAR_ACTIVITIES_PATH",
os.path.expanduser('~/Activities'))
def get_user_library_path(): def get_user_library_path():
return os.path.expanduser('~/Library') return os.path.expanduser('~/Library')