changeset 17:7ca5d9a3b157

expanduser
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 Dec 2012 16:50:20 -0800
parents 6a3754236d1f
children 328e88120fc2
files mozillatry.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mozillatry.py	Tue Dec 04 16:35:35 2012 -0800
+++ b/mozillatry.py	Tue Dec 04 16:50:20 2012 -0800
@@ -104,11 +104,11 @@
         if (not self.config.get('opt')) and (not self.config.get('debug')):
             raise ConfigurationError("Must have opt or debug builds")
 
+        self.config['mozilla_central'] = os.path.expanduser(self.config['mozilla_central'])
         try_directory = self.config.get('mozilla_central')
         if (try_directory is None) or (not os.path.exists(try_directory)):
             raise ConfigurationError("mozilla-central directory does not exist: %s" % try_directory)
 
-        config['mozilla_central'] = os.path.expanduser(config['mozilla_central'])
         # TODO: make a 'path' type
 
     def configuration_files(self, options, args):