GetValidTexFiles函数添加列表排序功能
This commit is contained in:
parent
bdc5ab9602
commit
311db87ad6
|
|
@ -793,9 +793,10 @@ def GetValidTexFiles(path): #获取有题号的.tex文件列表 及 有题号的
|
|||
if len(ids) > 0:
|
||||
pathlist = pathlist + [root]
|
||||
texlist = texlist + [os.path.join(root,file)]
|
||||
texlist = list(set(texlist))
|
||||
pathlist = list(set(pathlist))
|
||||
texlist = sorted(list(set(texlist)))
|
||||
pathlist = sorted(list(set(pathlist)))
|
||||
return (texlist,pathlist) # 返回 有题号的.tex文件列表 与 所在路径列表 组成的二元组
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("数据库工具, import用.")
|
||||
Reference in New Issue