refactors logging and config
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import configparser
|
||||
from configobj import ConfigObj
|
||||
import os
|
||||
|
||||
def load_config():
|
||||
config = configparser.ConfigParser()
|
||||
config.read(os.path.join(os.path.dirname(__file__), '..', 'config.ini'))
|
||||
return config
|
||||
config_path = os.path.join(os.path.dirname(__file__), '..', 'config.ini')
|
||||
|
||||
# Load config while preserving sections as nested dicts
|
||||
return ConfigObj(config_path)
|
||||
|
||||
Reference in New Issue
Block a user