socializer/src/config.py

17 lines
391 B
Python
Raw Normal View History

2016-02-13 17:06:36 -06:00
# -*- coding: cp1252 -*-
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...")
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