Skip to content

Commit

Permalink
TEMPORARY: change default contents_directory to "."
Browse files Browse the repository at this point in the history
So we can do a CI run with old onedir layout enabled by default.
  • Loading branch information
rokm committed Sep 30, 2023
1 parent 315265e commit aa74ca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PyInstaller/building/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def __init__(self, *args, **kwargs):
self.strip = kwargs.get('strip', False)
self.upx_exclude = kwargs.get("upx_exclude", [])
self.runtime_tmpdir = kwargs.get('runtime_tmpdir', None)
self.contents_directory = kwargs.get("contents_directory", "_internal")
self.contents_directory = kwargs.get("contents_directory", ".")
# If ``append_pkg`` is false, the archive will not be appended to the exe, but copied beside it.
self.append_pkg = kwargs.get('append_pkg', True)

Expand Down
2 changes: 1 addition & 1 deletion PyInstaller/building/makespec.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def main(
# The the text value 'None' means - use default icon.
icon_file = 'None'
if contents_directory:
exe_options += "\n contents_directory='%s'," % (contents_directory or "_internal")
exe_options += "\n contents_directory='%s'," % (contents_directory or ".")
if hide_console:
exe_options += "\n hide_console='%s'," % hide_console

Expand Down

0 comments on commit aa74ca1

Please sign in to comment.