Do not fallback to SUGAR_PREFIX for the sugar path. Require SUGAR_PATH.
This commit is contained in:
parent
f34e5fd36b
commit
152361c592
@ -1,2 +1,3 @@
|
||||
export SUGAR_PATH=@prefix@/share/sugar
|
||||
export GTK2_RC_FILES=@prefix@/share/sugar/data/gtkrc
|
||||
dbus-launch --exit-with-session sugar-shell
|
||||
|
@ -33,7 +33,7 @@ def _get_sugar_path(base, path=None):
|
||||
if os.environ.has_key('SUGAR_PATH'):
|
||||
sugar_path = os.environ['SUGAR_PATH']
|
||||
else:
|
||||
sugar_path = _get_prefix_path('share/sugar')
|
||||
raise RuntimeError("The SUGAR_PATH environment variable is not set.")
|
||||
|
||||
if path:
|
||||
return os.path.join(sugar_path, base, path)
|
||||
|
Loading…
Reference in New Issue
Block a user