[jhbuild/wip/path-env: 7/18] config: split out env_prepends handling	as well
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [jhbuild/wip/path-env: 7/18] config: split out env_prepends handling	as well
- Date: Thu, 13 Mar 2014 13:45:46 +0000 (UTC)
commit a2ca7b584eb5090fef0eabe25efb4f027435c24d
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 12 17:04:52 2014 -0400
    config: split out env_prepends handling as well
    
    jhbuildrc can call a prependpath() function to get a path added to a
    variable after jhbuild has added its own stuff.  Split this out of the
    normal environment variable setup code and into its own function.
 jhbuild/config.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/config.py b/jhbuild/config.py
index c697430..78168f6 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -280,6 +280,7 @@ class Config:
         self.create_directories()
         self.setup_env_defaults()
         self.setup_env()
+        self.apply_env_prepends()
         self.update_build_targets()
 
     def reload(self):
@@ -643,7 +644,8 @@ class Config:
         os.environ['GCONF_SCHEMA_INSTALL_SOURCE'] = 'xml:merged:' + os.path.join(
                 gconfdir, 'gconf.xml.defaults')
 
-        # handle environment prepends ...
+    def apply_env_prepends(self):
+        ''' handle environment prepends ... '''
         for envvar in env_prepends.keys():
             for path in env_prepends[envvar]:
                 addpath(envvar, path)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]