From 177ee7220ac5cb4b6d9b8367ef10f2fa83103a49 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 9 Oct 2007 12:08:03 +0200 Subject: [PATCH] Add $bundlepath/bin to the PATH when launching an activity. --- sugar/activity/activityfactory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sugar/activity/activityfactory.py b/sugar/activity/activityfactory.py index ee1ae905..05141f1e 100644 --- a/sugar/activity/activityfactory.py +++ b/sugar/activity/activityfactory.py @@ -156,8 +156,11 @@ class ActivityCreationHandler(gobject.GObject): activity_registry = registry.get_registry() activity = activity_registry.get_activity(self._service_name) if activity: + bin_path = os.path.join(activity.path, 'bin') + env = os.environ.copy() env['SUGAR_BUNDLE_PATH'] = activity.path + env['PATH'] = bin_path + ':' + env['PATH'] command = activity.command if self._handle.activity_id is not None: