删除多余的Word文件

This commit is contained in:
shuaikangzhou 2023-11-14 22:57:43 +08:00
parent cc059fcbfa
commit 11d5b6415b
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@
<recent name="D:\Project\PythonProject\WeChatMsg\app\Ui" /> <recent name="D:\Project\PythonProject\WeChatMsg\app\Ui" />
</key> </key>
</component> </component>
<component name="RunManager" selected="Python.decrypt_window"> <component name="RunManager" selected="Python.main">
<configuration name="decrypt" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="decrypt" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="WeChatMsg" /> <module name="WeChatMsg" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
@ -205,8 +205,8 @@
</configuration> </configuration>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python.decrypt_window" />
<item itemvalue="Python.main" /> <item itemvalue="Python.main" />
<item itemvalue="Python.decrypt_window" />
<item itemvalue="Python.decrypt" /> <item itemvalue="Python.decrypt" />
<item itemvalue="Python.get_wx_info" /> <item itemvalue="Python.get_wx_info" />
<item itemvalue="Python.micro_msg (1)" /> <item itemvalue="Python.micro_msg (1)" />

View File

@ -85,6 +85,7 @@ class Output(QThread):
if num != 0: if num != 0:
middle_new_docx.append(word_document) middle_new_docx.append(word_document)
num = num + 1 num = num + 1
os.remove(word)
middle_new_docx.save(origin_docx_path + '/' + filename) middle_new_docx.save(origin_docx_path + '/' + filename)
def progress(self, value): def progress(self, value):