[jhbuild] Move UNDER_JHBUILD to where CERTIFIED_GNOMIE is declared



commit c373ae88c92f10af9101800a9b9b0298252d0070
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Jun 17 18:25:46 2010 -0500

    Move UNDER_JHBUILD to where CERTIFIED_GNOMIE is declared
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 jhbuild/config.py  |    5 +++++
 scripts/jhbuild.in |    2 --
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/config.py b/jhbuild/config.py
index 7d0ba1f..225d9d0 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -383,6 +383,11 @@ class Config:
         perl5lib = os.path.join(self.prefix, 'lib', 'perl5')
         addpath('PERL5LIB', perl5lib)
 
+        # These two variables are so that people who use "jhbuild shell"
+        # can tweak their shell prompts and such to show "I'm under jhbuild".
+        # The first variable is the obvious one to look for; the second
+        # one is for historical reasons.
+        os.environ['UNDER_JHBUILD'] = 'true'
         os.environ['CERTIFIED_GNOMIE'] = 'yes'
 
         # PYTHONPATH
diff --git a/scripts/jhbuild.in b/scripts/jhbuild.in
index 0ab7c6f..dc9ccdf 100644
--- a/scripts/jhbuild.in
+++ b/scripts/jhbuild.in
@@ -23,8 +23,6 @@ else:
     except ImportError:
         sys.path.insert(0, srcdir)
 
-os.environ['UNDER_JHBUILD'] = 'true'
-
 __builtin__.__dict__['PKGDATADIR'] = pkgdatadir
 __builtin__.__dict__['DATADIR'] = datadir
 __builtin__.__dict__['SRCDIR'] = srcdir



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]