Mercurial > hg > configuration
comparison configuration/configuration.py @ 124:5db2844b8300
fix
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 17 Sep 2013 20:47:50 -0700 |
parents | bb0f58ae318e |
children | c6a41a60afc0 |
comparison
equal
deleted
inserted
replaced
123:bb0f58ae318e | 124:5db2844b8300 |
---|---|
586 | 586 |
587 # default configuration file | 587 # default configuration file |
588 self.config_name = config or '.' + os.path.splitext(sys.argv[0])[0] | 588 self.config_name = config or '.' + os.path.splitext(sys.argv[0])[0] |
589 self.default_config_file = os.path.join('~', self.config_name) | 589 self.default_config_file = os.path.join('~', self.config_name) |
590 self.default_config_file_path = os.path.expanduser(self.default_config_file) | 590 self.default_config_file_path = os.path.expanduser(self.default_config_file) |
591 if os.path.exists(self.default_config_file_path) | 591 if os.path.exists(self.default_config_file_path): |
592 self.load_help += ' [DEFAULT: %s]' % default_config_file | 592 self.load_help += ' [DEFAULT: %s]' % default_config_file |
593 | 593 |
594 Configuration.__init__(self, usage=self.usage, load=load) | 594 Configuration.__init__(self, usage=self.usage, load=load) |
595 | 595 |
596 def validate(self): | 596 def validate(self): |