collector.py 522 Bytes
import pymysql
pymysql.install_as_MySQLdb()

from library.collector_api import *
import library.cf

class Collector:
    def __init__(self,num=1):
        self.set_simul_num(num)
        self.collector_api=collector_api()

    def collecting(self):
        self.collector_api.code_update_check()

    def set_simul_num(self,num):
        library.cf.test_num=num

    def set_real_num(self,num=1):
        library.cf.real_num=num

if __name__=="__main__":
    app=QApplication(sys.argv)
    c=Collector()
    c.collecting()