Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-05-15 09:50:21 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-05-15 09:50:21 (GMT)
commit4a8493f95e4df95cfbdb0705c146342f4b8cab58 (patch)
tree0da16771645aa3fdf6e2ba32ba1ce14eec694383 /sugar
parent9fa0790c2be829bcd652a49ed9c6e52989dcbfe7 (diff)
Fix mozilla components loading when sugar is running from source.
We don't attempt to load components from source, since that would be insanely complicated.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/env.py b/sugar/env.py
index 4bee509..03cfea7 100644
--- a/sugar/env.py
+++ b/sugar/env.py
@@ -22,7 +22,7 @@ def _get_prefix_path(base, path=None):
if os.environ.has_key('SUGAR_PREFIX'):
prefix = os.environ['SUGAR_PREFIX']
else:
- prefix = '/usr'
+ raise RuntimeError("The SUGAR_PREFIX environment variable is not set.")
if path:
return os.path.join(prefix, base, path)