def main():
os.makedirs(localstor, exist_ok=True)
with open('tsd_dlink_filelist.csv', 'w') as fout:
cw = csv.writer(fout)
cw.writerow(['model', 'rev', 'fw_ver', 'fw_url', 'date', 'fsize', 'sha1', 'md5'])
global executor
executor = futures.ThreadPoolExecutor()
models = parse_models()
startI = next(i for i,sp in enumerate(models) if sp[0]=='DBT' and sp[1]=='120')
for model in models[startI:]:
pfx,sfx = model[0], model[1]
selectModel(pfx, sfx)
print('wait for Executor shutdown')
executor.shutdown(True)
评论列表
文章目录