From 0e0ebf570167689a3ab656a6f336650039f01361 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 30 Oct 2007 15:03:27 +0100 Subject: [PATCH] Set SUGAR_ACTIVITY_ROOT --- lib/sugar/activity/activityfactory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sugar/activity/activityfactory.py b/lib/sugar/activity/activityfactory.py index e6550159..39ebebc4 100644 --- a/lib/sugar/activity/activityfactory.py +++ b/lib/sugar/activity/activityfactory.py @@ -79,7 +79,10 @@ def get_environment(activity): environ = os.environ.copy() bin_path = os.path.join(activity.path, 'bin') + activity_root = env.get_profile_path(activity.bundle_id) + environ['SUGAR_BUNDLE_PATH'] = activity.path + environ['SUGAR_ACTIVITY_ROOT'] = activity_root environ['PATH'] = bin_path + ':' + environ['PATH'] return environ