Factor out CONF_FILE

feature-admin-split
Darksider3 5 years ago
parent cdc72a30f4
commit 670aa3d9c3

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

Loading…
Cancel
Save