def upload_by_autoit(self, files):
"""autoit?? —— ???????????????????files????list?"""
self._window_open()
self._files(files)
self.logger.info('upload {} by autoit'.format(self.files))
# ????????
if win32gui.FindWindow('#32770', self.window_name):
self.window_open_flag = 1
else:
raise UploadWindowNotOpenError('???????????')
upfile = os.path.abspath(DefaultConfig().base_path + '\\src\\resource\\' + AUTOITEXE[self.driver.name])
os.system('{0} {1}'.format(upfile, self.files)) # ??exe?????
self.window_open_flag = 0
# ??????
评论列表
文章目录