开发者

Py2exe Directory Structure

开发者 https://www.devze.com 2023-01-05 09:32 出处:网络
I use Py2exe to package a Python application with quite a few dependant packages. While Py2exe works flawlessly the resulting dist/ folder with the executable contains a large number (10-15) of suppor

I use Py2exe to package a Python application with quite a few dependant packages. While Py2exe works flawlessly the resulting dist/ folder with the executable contains a large number (10-15) of support files (.dll, .pyd, .zip).

Ideally I would like to be able to place all of these dependant files in a folder called support/ or lib/ or something to that effect. This way when people download the application and extract the archive they are on开发者_开发问答ly presented with an executable and some folders.

Does Py2exe support placing dependant files in a sub-folder? If so, how can one accomplish this.


An effective solution is to bundle everything in an standalone executable using

bundle_files:1

in your setup.py py2exe options.

0

精彩评论

暂无评论...
验证码 换一张
取 消