Skip to content

Commit

Permalink
loader/bootstrap: remove support for zipped eggs
Browse files Browse the repository at this point in the history
Remove part of the code that extends sys.path with contents of the
`os.path.join(sys._MEIPASS, 'eggs')`, as we should not be collecting
eggs there anymore.
  • Loading branch information
rokm committed Jul 29, 2023
1 parent 88e82e6 commit 7b6d1c4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions PyInstaller/loader/pyiboot01_bootstrap.py
Expand Up @@ -81,12 +81,3 @@
if sys.platform.startswith('win'):
import pyimod04_pywin32
pyimod04_pywin32.install()

# Make .eggs and zipfiles available at runtime
d = "eggs"
d = os.path.join(sys._MEIPASS, d)
# Test if the 'eggs' directory exists. This allows us to opportunistically include this script into the packaged exe,
# even if no eggs were found when packaging the program. (Which may be a use-case, see issue #653).
if os.path.isdir(d):
for fn in os.listdir(d):
sys.path.append(os.path.join(d, fn))

0 comments on commit 7b6d1c4

Please sign in to comment.