Start rewriting options and config as common.py globals

This commit is contained in:
Daniel Martí 2013-11-01 12:10:57 +01:00
parent 1d88ba5450
commit c3be06fb1d
12 changed files with 129 additions and 99 deletions

View file

@ -268,12 +268,12 @@ def check_gplay(app):
return (version.strip(), None)
config = {}
config = None
options = None
def main():
# Read configuration...
common.read_config(config)
global config, options
# Parse command line...
parser = OptionParser()
@ -291,6 +291,8 @@ def main():
help="Only print differences with the Play Store")
(options, args) = parser.parse_args()
config = common.read_config(options)
# Get all apps...
apps = common.read_metadata(options.verbose)