You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
405 B
Python

import argparse
import configparser
import logging
import lib.default_cmd 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']