We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71537b5 commit 1253a2bCopy full SHA for 1253a2b
crazy_functions/latex_fns/latex_toolbox.py
@@ -283,10 +283,10 @@ def find_tex_file_ignore_case(fp):
283
dir_name = os.path.dirname(fp)
284
base_name = os.path.basename(fp)
285
# 如果输入的文件路径是正确的
286
- if os.path.exists(pj(dir_name, base_name)): return pj(dir_name, base_name)
+ if os.path.isfile(pj(dir_name, base_name)): return pj(dir_name, base_name)
287
# 如果不正确,试着加上.tex后缀试试
288
if not base_name.endswith('.tex'): base_name+='.tex'
289
290
# 如果还找不到,解除大小写限制,再试一次
291
import glob
292
for f in glob.glob(dir_name+'/*.tex'):
0 commit comments