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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Opens a resource from the application's resource folder.  To see
how this works, consider the following folder structure::

    /myapplication.py
    /schema.sql
    /static
        /style.css
    /templates
        /layout.html
        /index.html(more...)

src/c/o/content-api-HEAD/src/zeit/api/blueprints.py   content-api(Download)
    schema = (current_app.root_path + current_app.config['SCHEMA'])
    with contextlib.closing(g.db) as db:
        with api_server.open_resource(schema) as f:
            db.cursor().executescript(f.read())
            db.commit()