系列讲义生成中取消在终端输入是否编译合集的功能(面板上有)

This commit is contained in:
weiye.wang 2024-03-05 20:29:02 +08:00
parent 379cb012b0
commit b298c51aaa
1 changed files with 3 additions and 3 deletions

View File

@ -136,9 +136,9 @@ class MyWindow(QWidget,Ui_Form):
SaveTextFile(mergedtext,os.path.join(self.outputpath,f"合集{GetDate()}.tex"))
if not "编译合集" in configjson or configjson["编译合集"] == False:
tocompile = input("需要编译合集吗?(Y/[N]):")
if configjson["编译合集"] == True or tocompile[0].upper() == "Y":
# if not "编译合集" in configjson or configjson["编译合集"] == False:
# tocompile = input("需要编译合集吗?(Y/[N]):")
if configjson["编译合集"] == True:
XeLaTeXCompile(self.outputpath,f"合集{GetDate()}.tex")
os.startfile(self.outputpath)