Allow override of user library path

This allows for override of ~/Library the same way that can be done
for ~/Activities. Useful for automated testing.
This commit is contained in:
Daniel Drake 2013-06-29 11:13:24 -06:00 committed by Daniel Narvaez
parent 9d8290dc26
commit 778b10f8d4

View File

@ -59,4 +59,5 @@ def get_user_activities_path():
def get_user_library_path(): def get_user_library_path():
return os.path.expanduser('~/Library') return os.environ.get("SUGAR_LIBRARY_PATH",
os.path.expanduser('~/Library'))