Skip to content

Commit 2de44db

Browse files
committed
Handle PathLike zipapp targets
1 parent 127ca4b commit 2de44db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/zipapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _copy_archive(archive, new_archive, interpreter=None):
7979
dst.write(first_2)
8080
shutil.copyfileobj(src, dst)
8181

82-
if interpreter and isinstance(new_archive, str):
82+
if interpreter and isinstance(new_archive, (str, os.PathLike)):
8383
_make_executable(new_archive)
8484

8585

0 commit comments

Comments
 (0)