Ticket #2965: 0001-Insert-activity-root-path-in-front-of-the-rest-of-sy.patch

File 0001-Insert-activity-root-path-in-front-of-the-rest-of-sy.patch, 749 bytes (added by alsroot, 13 years ago)
  • src/sugar/activity/main.py

    From dfa88f7492d006d04c383ca9ede7894395e1deda Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@activitycentral.org>
    Date: Thu, 14 Jul 2011 11:45:44 +0000
    Subject: [PATCH sugar-toolkit] Insert activity root path in front of the rest
     of sys.path #2965
    
    ---
     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 d2a9302..2b8df53 100644
    a b def main(): 
    9292        sys.exit(1)
    9393
    9494    bundle_path = os.environ['SUGAR_BUNDLE_PATH']
    95     sys.path.append(bundle_path)
     95    sys.path.insert(0, bundle_path)
    9696
    9797    bundle = ActivityBundle(bundle_path)
    9898