Set SUGAR_ACTIVITY_ROOT

This commit is contained in:
Marco Pesenti Gritti 2007-10-30 15:03:27 +01:00
parent 6768a4216f
commit 0e0ebf5701

View File

@ -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