删除多余的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" />
</key>
</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">
<module name="WeChatMsg" />
<option name="INTERPRETER_OPTIONS" value="" />
@ -205,8 +205,8 @@
</configuration>
<recent_temporary>
<list>
<item itemvalue="Python.decrypt_window" />
<item itemvalue="Python.main" />
<item itemvalue="Python.decrypt_window" />
<item itemvalue="Python.decrypt" />
<item itemvalue="Python.get_wx_info" />
<item itemvalue="Python.micro_msg (1)" />

View File

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