Пример #1
0
def init():
    reload(sys)
    sys.setdefaultencoding(env.CHARSET)

    log.init()

    sdbc = SqliteSDBC(env.DB_PATH)
    sdbc.init(env.SQL_PATH)
Пример #2
0
def init():
    log.init()

    sdbc = SqliteSDBC(config.DB_PATH)
    sdbc.init(config.SQL_PATH)
Пример #3
0
def init():
    log.init()
    sdbc = SqliteDBC(options=settings.database)
    sdbc.exec_script(settings.database['sqlpath'])
Пример #4
0
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))
Пример #5
0
def init():
    log.init()
    sdbc = SqliteSDBC(env.DB_PATH)
    sdbc.init(env.SQL_PATH)