[Sugar-devel] [PATCH sugar-toolkit-gtk3 3/4] Add a SUGAR_ACTIVITIES_PATH environment variable
Daniel Narvaez
dwnarvaez at gmail.com
Thu Dec 6 17:26:48 EST 2012
From: Daniel Narvaez <dwnarvaez at gmail.com>
Useful for tests but perhaps for other stuff too.
---
src/sugar3/env.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sugar3/env.py b/src/sugar3/env.py
index e681f4f..23bb0ab 100644
--- a/src/sugar3/env.py
+++ b/src/sugar3/env.py
@@ -51,8 +51,8 @@ def get_logs_path(path=None):
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():
return os.path.expanduser('~/Library')
--
1.7.10.4
More information about the Sugar-devel
mailing list