Fix argparse config file error
This commit is contained in:
parent
254cc4b1f4
commit
d23572b8cf
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ def parse_arguments():
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_arguments()
|
args = parse_arguments()
|
||||||
Config.load_config(args.config[0])
|
if args.config is list:
|
||||||
|
conf = args.config[0]
|
||||||
|
else:
|
||||||
|
conf = args.config
|
||||||
|
Config.load_config(conf)
|
||||||
init_working_directory()
|
init_working_directory()
|
||||||
if args.fn:
|
if args.fn:
|
||||||
args.fn()
|
args.fn()
|
||||||
|
|
Loading…
Reference in a new issue