2016-02-13 17:06:36 -06:00
|
|
|
# -*- coding: cp1252 -*-
|
2018-12-14 15:27:20 -06:00
|
|
|
import os
|
2016-02-13 17:06:36 -06:00
|
|
|
import config_utils
|
|
|
|
import paths
|
|
|
|
import logging
|
|
|
|
|
|
|
|
log = logging.getLogger("config")
|
|
|
|
|
|
|
|
MAINFILE = "socializer.conf"
|
|
|
|
MAINSPEC = "app-configuration.defaults"
|
|
|
|
|
|
|
|
app = None
|
|
|
|
def setup ():
|
|
|
|
global app
|
|
|
|
log.debug("Loading global app settings...")
|
2018-12-14 15:27:20 -06:00
|
|
|
app = config_utils.load_config(os.path.join(paths.config_path(), MAINFILE), os.path.join(paths.app_path(), MAINSPEC))
|
2016-02-13 17:06:36 -06:00
|
|
|
|