delete cfgparse again and get it going as it where before

pull/4/head
Darksider3 5 years ago
parent 8c3ac4060f
commit 77efb4b339

@ -1,6 +1,12 @@
import lib.cfgparse import configparser
import logging
import lib.uis.default as default_cmd
args = lib.cfgparse.args args = default_cmd.argparser.parse_args()
CONF_FILE = lib.cfgparse.CONF_FILE CONF_FILE = args.config
config = lib.cfgparse.config config = configparser.ConfigParser()
REG_FILE = lib.cfgparse.REG_FILE config.read(CONF_FILE)
logging.basicConfig(format="%(asctime)s: %(message)s",
level=int(config['LOG_LEVEL']['log_level'])
)
REG_FILE = config['DEFAULT']['applications_db']

@ -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']
Loading…
Cancel
Save