Skip to content

Commit 71537b5

Browse files
authored
Merge pull request #1315 from Harry67Hu/master
fix MacOS-zip bug
2 parents c7a0a5f + 7754215 commit 71537b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crazy_functions/Latex输出PDF结果.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def move_project(project_folder, arxiv_id=None):
7373

7474
# align subfolder if there is a folder wrapper
7575
items = glob.glob(pj(project_folder,'*'))
76+
items = [item for item in items if os.path.basename(item)!='__MACOSX']
7677
if len(glob.glob(pj(project_folder,'*.tex'))) == 0 and len(items) == 1:
7778
if os.path.isdir(items[0]): project_folder = items[0]
7879

@@ -214,7 +215,6 @@ def Latex英文纠错加PDF对比(txt, llm_kwargs, plugin_kwargs, chatbot, histo
214215
# <-------------- we are done ------------->
215216
return success
216217

217-
218218
# ========================================= 插件主程序2 =====================================================
219219

220220
@CatchException

0 commit comments

Comments
 (0)