示例#1
0
文件: conftest.py 项目: tracsa/charpe
def config():
    ''' Returns a fully loaded configuration dict '''
    con = Config(
        os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))

    con.from_object('charpe.settings')

    return con
示例#2
0
def config():
    ''' Returns a fully loaded configuration dict '''
    con = Config(
        os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))

    con.from_object('cacahuate.settings')
    con.from_mapping(TESTING_SETTINGS)

    return con