socializer/src/config.py

17 lines
391 B
Python

# -*- coding: cp1252 -*-
import os
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...")
app = config_utils.load_config(os.path.join(paths.config_path(), MAINFILE), os.path.join(paths.app_path(), MAINSPEC))