diff paint/info.py @ 56:042a1b2a3e8a

start flushing out tests
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 23 Jan 2013 16:01:29 -0800
parents a8236b97abd3
children d5e5c7496784
line wrap: on
line diff
--- a/paint/info.py	Wed Jan 23 15:35:49 2013 -0800
+++ b/paint/info.py	Wed Jan 23 16:01:29 2013 -0800
@@ -30,7 +30,12 @@
         sys.modules['setuptools'] = sys.modules[__name__]
         globals()['setup'] = self._setup
         try:
-            
+            module = imp.load_source('setup', setup_py)
+        finally:
+            sys.modules.pop('setuptools')
+            if setuptools:
+                sys.modules['setuptools'] = setuptools
+            globals().pop('setup')
         return self.__dict__.pop('_info')
 
     def _setup(self, **kwargs):