From d23572b8cf80e827143498950b98317834f544f4 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 26 Sep 2021 17:23:45 +0200 Subject: [PATCH] Fix argparse config file error --- easywks/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/easywks/main.py b/easywks/main.py index 32b3743..c94b202 100644 --- a/easywks/main.py +++ b/easywks/main.py @@ -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()