From 670aa3d9c392e8e3da32fef5053744e040d07c7a Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Sat, 19 Oct 2019 14:27:16 +0200 Subject: [PATCH] Factor out CONF_FILE --- private/lib/CFG.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/private/lib/CFG.py b/private/lib/CFG.py index bfab52c..bd60f9f 100644 --- a/private/lib/CFG.py +++ b/private/lib/CFG.py @@ -1,11 +1,6 @@ import configparser -import logging import lib.uis.default as default_cmd args = default_cmd.argparser.parse_args() -CONF_FILE = args.config config = configparser.ConfigParser() -config.read(CONF_FILE) -logging.basicConfig(format="%(asctime)s: %(message)s", - level=int(config['LOG_LEVEL']['log_level']) - ) \ No newline at end of file +config.read(args.config)