I need to have an executable file (.exe) which takes some parameters from a file which can be configured by the user depending on his/her need. Since i have created scripts in
Is there any way to avoid creating library.zip and just put all dependency files in a sub folder ?
Yes, set the skip_archive
option to True
.
http://www.py2exe.org/index.cgi/ListOfOptions
EDIT: The pyc files are placed in the same folder where the zip file would have been. The zipfile
keyword controls the path to the zip. This puts the files in subfolder foo
:
setup(
...
zipfile="foo/bar.zip",
options={"py2exe": {"skip_archive": True}})