Mercurial > mozilla > hg > MozillaTry
comparison mozillatry.py @ 10:f0bca08e296a
start looking for config file
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 04 Dec 2012 15:28:31 -0800 |
parents | 8c8a223e4df2 |
children | 9b90cf893943 |
comparison
equal
deleted
inserted
replaced
9:8c8a223e4df2 | 10:f0bca08e296a |
---|---|
75 | 75 |
76 default_config_file = os.path.join('~', '.mozutils.yaml') | 76 default_config_file = os.path.join('~', '.mozutils.yaml') |
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 usage += ' [DEFAULT: %s]' % default_config_file | 80 load_help += ' [DEFAULT: %s]' % default_config_file |
81 options = {'opt': {'default': True, | 81 options = {'opt': {'default': True, |
82 'help': "whether to try on opt builds"}, | 82 'help': "whether to try on opt builds"}, |
83 'debug': {'default': True, | 83 'debug': {'default': True, |
84 'help': "whether to try on debug builds"}, | 84 'help': "whether to try on debug builds"}, |
85 'unittests': {'default': [], | 85 'unittests': {'default': [], |