Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha@silbe.org>2009-08-24 09:23:19 (GMT)
committer Sascha Silbe <sascha@silbe.org>2009-08-24 09:23:19 (GMT)
commit51f64c60bc9129b7631874eaeb18367096d04a58 (patch)
treea123fd6a1e4b06201a9bd5cb8048598f8c7202b6
parent3c0a81032df91a72cb4c14c0ab997fdf63b0a486 (diff)
don't override Sugar logger configuration environment variables if they have already been set
-rw-r--r--sjhbuild/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sjhbuild/config.py b/sjhbuild/config.py
index d209a29..d15f476 100644
--- a/sjhbuild/config.py
+++ b/sjhbuild/config.py
@@ -47,12 +47,12 @@ class Config(jhbuild.config.Config):
os.environ['SUGAR_PREFIX'] = self.prefix
os.environ['SUGAR_PATH'] = os.path.join(self.prefix, 'share', 'sugar')
- os.environ['SUGAR_LOGGER_LEVEL'] = 'debug'
+ os.environ.setdefault('SUGAR_LOGGER_LEVEL', 'debug')
# Enable debug log of the Telepathy components
- os.environ['GABBLE_DEBUG'] = 'all'
- os.environ['SALUT_DEBUG'] = 'all'
- os.environ['STREAM_ENGINE_DEBUG'] = 'all'
+ os.environ.setdefault('GABBLE_DEBUG', 'all')
+ os.environ.setdefault('SALUT_DEBUG', 'all')
+ os.environ.setdefault('STREAM_ENGINE_DEBUG', 'all')
# We need to add the gtk-2.0 directory explicitly to
# the Python path since '.pth' files (here pygtk.pth)