Skip to content

Commit 26db37b

Browse files
committed
fix: bring back outer temp directory
1 parent 83a785d commit 26db37b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
continue
3636
else:
3737
break
38-
completion = merge_and_scan_path(
39-
clone_path, pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'), hide_reserved=False, api_url=''
40-
).completion
38+
with TemporaryDirectory() as tmpdir:
39+
completion = merge_and_scan_path(
40+
clone_path, pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'), hide_reserved=False, api_url='', tmpdir=Path(tmpdir)
41+
).completion
4142
completion_progress.append((language, completion))
4243
print(completion_progress[-1])
4344

0 commit comments

Comments
 (0)