在工具v2的工具中所有打开vscode编辑的地方设置了"-w"指令, 关闭窗口执行下一步
This commit is contained in:
parent
3196dce1a8
commit
b1c5368917
|
|
@ -543,8 +543,8 @@ def ModifyProblembyTeX(id_string,prodict,toeditfilepath,editor): # vscode打开.
|
||||||
SaveTextFile(texdata,toeditfilepath)
|
SaveTextFile(texdata,toeditfilepath)
|
||||||
|
|
||||||
# 打开待编辑的.tex文件
|
# 打开待编辑的.tex文件
|
||||||
os.system("code "+toeditfilepath)
|
print("编辑完成后保存文件, 关闭文件继续...")
|
||||||
a = input("编辑完成后保存文件, 按回车继续...")
|
os.system("code -w -g "+toeditfilepath)
|
||||||
|
|
||||||
# 生成修改后的题号与内容, 答案, 解答与提示的对应
|
# 生成修改后的题号与内容, 答案, 解答与提示的对应
|
||||||
editor = GetDate() + "\t" + editor
|
editor = GetDate() + "\t" + editor
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
id_string = "000049,000169,001287,001743,021732"
|
id_string = "000049,000065"
|
||||||
editor = "王伟叶"
|
editor = "王伟叶"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ pro_dict = load_dict("../题库0.3/problems.json")
|
||||||
links = CreateIDLinks(generate_number_set(old_ids),generate_number_set(new_ids),pro_dict)
|
links = CreateIDLinks(generate_number_set(old_ids),generate_number_set(new_ids),pro_dict)
|
||||||
CreateRelatedProblems(links,pro_dict,tempfilepath,editor)
|
CreateRelatedProblems(links,pro_dict,tempfilepath,editor)
|
||||||
|
|
||||||
os.system("code "+tempfilepath)
|
print("编辑完毕后, 保存关闭文件继续.")
|
||||||
|
os.system("code -w -g "+tempfilepath) #-w表示关闭窗口后继续下一步
|
||||||
|
|
||||||
input("编辑完毕后, 回车继续.")
|
|
||||||
ImportRelatedProblems(tempfilepath,"../题库0.3/problems.json")
|
ImportRelatedProblems(tempfilepath,"../题库0.3/problems.json")
|
||||||
Reference in New Issue