def main(): logging.config.fileConfig("logging.ini", disable_existing_loggers=False) xbxdb.init(xbxu.get_db_path(CONFIG_PATH)) s = xbxdb.scoped_session() config = xbxc.Config(CONFIG_PATH) bs = xbxb.BuildSession(config) bs.buildall() s.add(bs) s.commit()
def main(): logging.config.fileConfig("logging.ini", disable_existing_loggers=False) xbxdb.init(xbxu.get_db_path(CONFIG_PATH)) s = xbxdb.scoped_session() config = xbxc.Config(CONFIG_PATH) logging.config.fileConfig("logging.ini", disable_existing_loggers=False) config = xbxc.Config("config.ini") rs = xbxr.RunSession(config) rs.init_xbh() rs.runall() s.add(rs) s.commit()
def setUpModule(): db_path = "" xbxdb.init(db_path)