comparison configuration/configuration.py @ 126:82151d79e117

configuration/configuration.py
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Sep 2013 23:35:26 -0700
parents c6a41a60afc0
children 1c3ba645a69b
comparison
equal deleted inserted replaced
125:c6a41a60afc0 126:82151d79e117
601 # default configuration file 601 # default configuration file
602 self.config_name = config or '.' + os.path.splitext(sys.argv[0])[0] 602 self.config_name = config or '.' + os.path.splitext(sys.argv[0])[0]
603 self.default_config_file = os.path.join('~', self.config_name) 603 self.default_config_file = os.path.join('~', self.config_name)
604 self.default_config_file_path = os.path.expanduser(self.default_config_file) 604 self.default_config_file_path = os.path.expanduser(self.default_config_file)
605 if os.path.exists(self.default_config_file_path): 605 if os.path.exists(self.default_config_file_path):
606 self.load_help += ' [DEFAULT: %s]' % default_config_file 606 self.load_help += ' [DEFAULT: %s]' % self.default_config_file
607 607
608 Configuration.__init__(self, usage=self.usage, load=load) 608 Configuration.__init__(self, usage=self.usage, load=load)
609 609
610 def validate(self): 610 def validate(self):
611 Configuration.validate(self) 611 Configuration.validate(self)