delete cfgparse again and get it going as it where before

This commit is contained in:
Darksider3 2019-10-19 14:21:46 +02:00
parent 8c3ac4060f
commit 77efb4b339
2 changed files with 11 additions and 17 deletions

View file

@ -1,6 +1,12 @@
import lib.cfgparse
import configparser
import logging
import lib.uis.default as default_cmd
args = lib.cfgparse.args
CONF_FILE = lib.cfgparse.CONF_FILE
config = lib.cfgparse.config
REG_FILE = lib.cfgparse.REG_FILE
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'])
)
REG_FILE = config['DEFAULT']['applications_db']

View file

@ -1,12 +0,0 @@
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'])
)
REG_FILE = config['DEFAULT']['applications_db']