Do not fallback to SUGAR_PREFIX for the sugar path. Require SUGAR_PATH.

This commit is contained in:
Marco Pesenti Gritti 2007-05-01 16:42:43 +02:00
parent f34e5fd36b
commit 152361c592
2 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,3 @@
export SUGAR_PATH=@prefix@/share/sugar
export GTK2_RC_FILES=@prefix@/share/sugar/data/gtkrc export GTK2_RC_FILES=@prefix@/share/sugar/data/gtkrc
dbus-launch --exit-with-session sugar-shell dbus-launch --exit-with-session sugar-shell

View File

@ -33,7 +33,7 @@ def _get_sugar_path(base, path=None):
if os.environ.has_key('SUGAR_PATH'): if os.environ.has_key('SUGAR_PATH'):
sugar_path = os.environ['SUGAR_PATH'] sugar_path = os.environ['SUGAR_PATH']
else: else:
sugar_path = _get_prefix_path('share/sugar') raise RuntimeError("The SUGAR_PATH environment variable is not set.")
if path: if path:
return os.path.join(sugar_path, base, path) return os.path.join(sugar_path, base, path)