def init(): reload(sys) sys.setdefaultencoding(env.CHARSET) log.init() sdbc = SqliteSDBC(env.DB_PATH) sdbc.init(env.SQL_PATH)
def init(): log.init() sdbc = SqliteSDBC(config.DB_PATH) sdbc.init(config.SQL_PATH)
def init(): log.init() sdbc = SqliteDBC(options=settings.database) sdbc.exec_script(settings.database['sqlpath'])
def get_sys_args(sys_args): help = False github_token = '' proxy = '' idx = 1 size = len(sys_args) while idx < size: try: if sys_args[idx] == '-h': help = True elif sys_args[idx] == '-gtk': idx += 1 github_token = sys_args[idx] elif sys_args[idx] == '-proxy': idx += 1 proxy = sys_args[idx] except: pass idx += 1 return help, github_token, proxy if __name__ == '__main__': log.init() main(*get_sys_args(sys.argv))
def init(): log.init() sdbc = SqliteSDBC(env.DB_PATH) sdbc.init(env.SQL_PATH)