[Dextrose] [PATCH sugar-toolkit] Insert activity root path in front of the reset of sys.path

Aleksey Lim alsroot at member.fsf.org
Sat Feb 5 19:50:54 EST 2011


Otherwise it is possible to include, eg, system modules before local ones.
---
 src/sugar/activity/main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sugar/activity/main.py b/src/sugar/activity/main.py
index 10d0031..eee717e 100644
--- a/src/sugar/activity/main.py
+++ b/src/sugar/activity/main.py
@@ -88,7 +88,7 @@ def main():
         sys.exit(1)
 
     bundle_path = os.environ['SUGAR_BUNDLE_PATH']
-    sys.path.append(bundle_path)
+    sys.path.insert(0, bundle_path)
 
     bundle = ActivityBundle(bundle_path)
 
-- 
1.7.3.4



More information about the Dextrose mailing list