[jhbuild] fix configuration reload



commit 94be7c6de49838fdcb60b6e804a45c34bd644cbf
Author: Frederic Peters <fpeters 0d be>
Date:   Sun May 3 09:03:43 2009 +0200

    fix configuration reload
---
 jhbuild/config.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/jhbuild/config.py b/jhbuild/config.py
index 3a966d5..b699072 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -108,7 +108,7 @@ class Config:
             }
 
         if not self._orig_environ:
-            self._config['_orig_environ'] = os.environ.copy()
+            self.__dict__['_orig_environ'] = os.environ.copy()
 
         env_prepends.clear()
         try:
@@ -126,7 +126,7 @@ class Config:
 
     def reload(self):
         os.environ = self._orig_environ.copy()
-        self.__init__(filename=self.__file__)
+        self.__init__(filename=self._config.get('__file__'))
 
     def load(self):
         config = self._config



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