Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

        def init_cfg(config_fname):
    cfg = ConfigObj(config_fname)
    global token, proxy_type, proxy_server
    token = cfg['token']
    proxy_server = cfg.get('proxy_server', 0)
    proxy_type = cfg.get('proxy_type', 0)
        


src/h/i/hipchat-0.0.1/hipchat/commands.py   hipchat(Download)
def init_sys_cfg():
    if exists('hipchat.cfg'):
        hipchat.config.init_cfg('hipchat.cfg')
    elif exists('~/.hipchat.cfg'):
        hipchat.config.init_cfg('~/.hipchat.cfg')
    elif exists('/etc/hipchat.cfg'):
        hipchat.config.init_cfg('/etc/hipchat.cfg')

src/p/y/python-hipchat-HEAD/hipchat/commands.py   python-hipchat(Download)
def init_sys_cfg():
    if exists('hipchat.cfg'):
        hipchat.config.init_cfg('hipchat.cfg')
    elif exists('~/.hipchat.cfg'):
        hipchat.config.init_cfg('~/.hipchat.cfg')
    elif exists('/etc/hipchat.cfg'):
        hipchat.config.init_cfg('/etc/hipchat.cfg')

src/l/u/lucille-HEAD/lucille.py   lucille(Download)
import urllib
 
hipchat.config.init_cfg('hipchat.cfg')
 
lucille_cfg_file = open('lucille.cfg')