From 778b10f8d417672e3d08f1f37a6a2406cd458b9a Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sat, 29 Jun 2013 11:13:24 -0600 Subject: [PATCH] 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. --- src/sugar3/env.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sugar3/env.py b/src/sugar3/env.py index 419a0cbc..a544cc23 100644 --- a/src/sugar3/env.py +++ b/src/sugar3/env.py @@ -59,4 +59,5 @@ def get_user_activities_path(): def get_user_library_path(): - return os.path.expanduser('~/Library') + return os.environ.get("SUGAR_LIBRARY_PATH", + os.path.expanduser('~/Library'))