def task1(conf): # task1 def task2(conf): # task2 def main(args): args = parse_args(args) conf = get_conf(args.config_file) args.command(conf=conf) def get_conf(config_file): # read the conf and get it as a class obj if __name__ == "__main__": sys.exit(main(sys.argv[1:]))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)