comparison mozillatry.py @ 18:328e88120fc2

change default config file path to just .mozutils
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 Dec 2012 15:16:01 -0800
parents 7ca5d9a3b157
children 8587528177b4
comparison
equal deleted inserted replaced
17:7ca5d9a3b157 18:328e88120fc2
71 class ConfigurationError(Exception): 71 class ConfigurationError(Exception):
72 """error when checking configuration""" 72 """error when checking configuration"""
73 73
74 class MozillaTryConfiguration(configuration.Configuration): 74 class MozillaTryConfiguration(configuration.Configuration):
75 75
76 default_config_file = os.path.join('~', '.mozutils.yaml') 76 default_config_file = os.path.join('~', '.mozutils')
77 usage = '%prog [options] patch <patch2> <...>' 77 usage = '%prog [options] patch <patch2> <...>'
78 load_help = 'load from config file' 78 load_help = 'load from config file'
79 if os.path.exists(os.path.expanduser(default_config_file)): 79 if os.path.exists(os.path.expanduser(default_config_file)):
80 load_help += ' [DEFAULT: %s]' % default_config_file 80 load_help += ' [DEFAULT: %s]' % default_config_file
81 options = {'opt': {'default': True, 81 options = {'opt': {'default': True,