Pyedstaller 'onedir' mode creates too many files

I am "compiling" my Python application for Windows using PyInstaller 2.1. At first I tried to use the mode onefile, but running a single file takes a lot of time (unpacking wxand matplotlib). With mode, onedirthis is pretty fast (only a little slower than native python).

Therefore, I want to use the mode onedirfor faster startup, but it is difficult for the end user to find the actual file *.exein a huge number of files located in the main directory (there are 98 files, including the executable itself and the manifest).

I want to make sure that a non-technical user can easily double-click the executable file and work with this program (simplicity and portability) without a long disclaimer to just ignore 97 other files.

Can all these “distracting” files be moved to a subfolder? Or are there other ways to make it easier for the end user to run this program?

+5
source share
1 answer

Maybe you could use Onedir. You can put the resulting folder in any place and create a shortcut for the user, where it will be more convenient.

0
source

Source: https://habr.com/ru/post/1536218/


All Articles