示例#1
0
文件: conf.py 项目: vilos/rstlibrary
def configure(**kw):
    config = books.configure(**kw)
    return os.path.abspath(config.get('database'))
示例#2
0
    
    for i, bookid in enumerate(keys):
        
        #print '%d.' % i,
        if is_poems_missing_directive(bookid):
            print bookid
        #else:
        #    print


def close():
    store = getUtility(IStore)
    store.close()
    
    
if __name__=='__main__':
    inifile = None
    if len(sys.argv) > 1:
        inifile = sys.argv[1]
        configure(inifile)
    else:
        configure()
    
    run()
    close()