Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def parse_config_file(path):
    config = {}
    execfile(path, config, config)
    for name in config:
        if name in options:
            options[name].set(config[name])
        else:
            define(name, config[name])
        


src/j/u/july-0.9.2/july/web.py   july(Download)
def init_options():
    import os.path
    from tornado.options import options, parse_command_line
    from .util import parse_config_file
    parse_command_line()
 
    if options.settings:
        path = os.path.abspath(options.settings)
        print("Load settings from %s" % path)
        parse_config_file(path)

src/j/u/july-HEAD/july/web.py   july(Download)
def init_options():
    import os.path
    from tornado.options import options, parse_command_line
    from .util import parse_config_file
    parse_command_line()
 
    if options.settings:
        path = os.path.abspath(options.settings)
        print("Load settings from %s" % path)
        parse_config_file(path)