예제 #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()