# HG changeset patch # User Jeff Hammel # Date 1354662806 28800 # Node ID 8c8a223e4df2421fd50f137e40d93b9d0839b190 # Parent 7423fa8b4343b8f0390dc3da5140cbcc31cece76 begin to read config file diff -r 7423fa8b4343 -r 8c8a223e4df2 mozillatry.py --- a/mozillatry.py Tue Dec 04 14:33:04 2012 -0800 +++ b/mozillatry.py Tue Dec 04 15:13:26 2012 -0800 @@ -73,7 +73,11 @@ class MozillaTryConfiguration(configuration.Configuration): + default_config_file = os.path.join('~', '.mozutils.yaml') usage = '%prog [options] patch <...>' + load_help = 'load from config file' + if os.path.exists(os.path.expanduser(default_config_file)): + usage += ' [DEFAULT: %s]' % default_config_file options = {'opt': {'default': True, 'help': "whether to try on opt builds"}, 'debug': {'default': True,