예제 #1
0
def feHttp(request, gCfg, feCfg):
    dev = request.config.getoption("--dev")
    host = gCfg['host'] if dev else feCfg['host']
    client = PyHttp(host, feCfg['http'])
    client.keepLoginInfo(gCfg['login'])
    return client