From 152361c592188574d96c0d52352a35618014a084 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 01 May 2007 14:42:43 +0000 Subject: Do not fallback to SUGAR_PREFIX for the sugar path. Require SUGAR_PATH. --- (limited to 'sugar/env.py') diff --git a/sugar/env.py b/sugar/env.py index 3555e93..4bee509 100644 --- a/sugar/env.py +++ b/sugar/env.py @@ -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) -- cgit v0.9.1