Fix argparse config file error

This commit is contained in:
s3lph 2021-09-26 17:23:45 +02:00
parent 254cc4b1f4
commit d23572b8cf

View file

@ -37,7 +37,11 @@ def parse_arguments():
def main():
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()
if args.fn:
args.fn()