原os.startfile均替换为startfile(来自database_tools, 用subprocess.Popen实现, 跨平台)

This commit is contained in:
wangweiye7840 2024-03-15 13:52:59 +08:00
parent 7b1f0d4d57
commit 3eb3d733c6
3 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ class MyWindow(QWidget,Ui_Form):
endtime = time.time()
print(f"生成pdf文件所花时间: {endtime-midtime:.3f}")
os.system("code 临时文件/题号筛选.txt")
os.startfile("临时文件")
startfile("临时文件")

View File

@ -151,7 +151,7 @@ class MyWindow(QWidget,Ui_Form):
endtime = time.time()
print(f"生成pdf文件所花时间: {endtime-midtime:.3f}")
self.close()
os.startfile(self.lineEdit_path.text())
startfile(self.lineEdit_path.text())
if __name__ == '__main__':
app = QApplication([])

View File

@ -140,7 +140,7 @@ class MyWindow(QWidget,Ui_Form):
# tocompile = input("需要编译合集吗?(Y/[N]):")
if configjson["编译合集"] == True:
XeLaTeXCompile(self.outputpath,f"合集{GetDate()}.tex")
os.startfile(self.outputpath)
startfile(self.outputpath)