Do not fallback to SUGAR_PREFIX for the sugar path. Require SUGAR_PATH.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user