diff --git a/工具v4/网页获取讲义.py b/工具v4/网页获取讲义.py index d73ba719..e87dfb83 100644 --- a/工具v4/网页获取讲义.py +++ b/工具v4/网页获取讲义.py @@ -93,7 +93,7 @@ def index(): # obj_dict = load_dict("../题库0.3/LessonObj.json") # basicknowledge_dict = load_dict("../题库0.3/BasicKnowledge.json") consecutivenumbering = structure_dict[papertype]["consecutivenumbering"] - texdata = GenerateSingleLessonNotefromMariaDB(mycursor,pid,structure_dict,notes_dict,"../工具v4/模板文件/讲义模板.txt",os.path.join(outputpath,filename),configjson,consecutivenumbering) #20240415版讲义生成 + texdata = GenerateSingleLessonNotefromMariaDB(mycursor,pid,structure_dict,notes_dict,"./模板文件/讲义模板.txt",os.path.join(outputpath,filename),configjson,consecutivenumbering) #20240415版讲义生成 mydb.close() return f'''

{pid} PDF 文件生成完毕

@@ -122,7 +122,7 @@ def index(): for singleid in problems_list: bodystring += generateLaTeXBodyContentfromMariaDB(mycursor,singleid,configjson) + "\n" bodystring += "\\end{enumerate}\n\n" - templatepath = "../工具v4/模板文件/讲义模板.txt" + templatepath = "./模板文件/讲义模板.txt" outputfilepath = os.path.join(outputpath,filename) texdata = ReadTextFile(templatepath) texdata = StringSubstitute(r"<<[\s\S]*?待替换[\s\S]*?>>",texdata,("选题编译",bodystring))