Skip to content

Commit 35c68e9

Browse files
committed
Try sleeping to see if that gives gc time to clean up and close the zipfile.
1 parent 8cc546b commit 35c68e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

importlib_resources/_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def as_file(path):
113113
# release the handle to the path and reader
114114
del reader
115115
del path
116+
__import__('time').sleep(.5)
116117
yield local
117118

118119

0 commit comments

Comments
 (0)