原os.startfile均替换为startfile(来自database_tools, 用subprocess.Popen实现, 跨平台)
This commit is contained in:
parent
7b1f0d4d57
commit
3eb3d733c6
|
|
@ -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("临时文件")
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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([])
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Reference in New Issue