comparison mozillatry.py @ 16:6a3754236d1f

TODO
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 Dec 2012 16:35:35 -0800
parents 0dfc618488d6
children 7ca5d9a3b157
comparison
equal deleted inserted replaced
15:0dfc618488d6 16:6a3754236d1f
106 106
107 try_directory = self.config.get('mozilla_central') 107 try_directory = self.config.get('mozilla_central')
108 if (try_directory is None) or (not os.path.exists(try_directory)): 108 if (try_directory is None) or (not os.path.exists(try_directory)):
109 raise ConfigurationError("mozilla-central directory does not exist: %s" % try_directory) 109 raise ConfigurationError("mozilla-central directory does not exist: %s" % try_directory)
110 110
111 config['mozilla_central'] = os.path.expanduser(config['mozilla_central'])
112 # TODO: make a 'path' type
113
111 def configuration_files(self, options, args): 114 def configuration_files(self, options, args):
112 configuration_files = configuration.Configuration.configuration_files(self, options, args) 115 configuration_files = configuration.Configuration.configuration_files(self, options, args)
113 if not configuration_files: 116 if not configuration_files:
114 default_config = os.path.expanduser(self.default_config_file) 117 default_config = os.path.expanduser(self.default_config_file)
115 if os.path.exists(default_config): 118 if os.path.exists(default_config):