区分yaml.conf

This commit is contained in:
xiaohanfei
2018-01-13 22:33:31 +08:00
parent aa599d7d70
commit 0ffbe102e2
6 changed files with 199 additions and 191 deletions

12
run.py
View File

@@ -1,10 +1,14 @@
# -*- coding=utf-8 -*-
from init import login, select_ticket_info
from concurrent.futures import ThreadPoolExecutor
pool = ThreadPoolExecutor(max_workers=1)
def run(ticket_config):
login.go_login(ticket_config).login()
select_ticket_info.select(ticket_config).main()
def run():
login.main()
select_ticket_info.select().main()
run()
f1 = pool.submit(run("ticket_config.yaml"))