Ignoring library.zip in py2exe

前端 未结 1 858
执念已碎
执念已碎 2021-01-21 06:49

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

相关标签:
1条回答
  • 2021-01-21 07:13

    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}})
    
    0 讨论(0)
提交回复
热议问题