Did I find the right examples for you? yes no

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

src/s/c/ScratchDocs-HEAD/docs.py   ScratchDocs(Download)
def load_templates():
    if not os.path.exists(cfg.MAKO_DIR): os.mkdir(cfg.MAKO_DIR)
    _prefix = os.path.dirname(__file__)
    if cfg.TPLDIR:
        tpldir = cfg.TPLDIR
    taskfn = os.path.join(tpldir,'task.org')
    assert os.path.exists(taskfn),"%s does not exist ; am in %s"%(taskfn,os.getcwd())
    rt['task'] = Template(filename=(taskfn),lookup = lk,module_directory=cfg.MAKO_DIR)
    rt['iterations'] = Template(filename=os.path.join(tpldir,'iterations.org'),lookup = lk,module_directory=cfg.MAKO_DIR)
    rt['tasks'] = Template(filename=os.path.join(tpldir,'tasks.org'),lookup = lk,module_directory=cfg.MAKO_DIR)