Pyinstaller onedir: Separate .exe from all other .dll files and folders

0

I have an application that I would like to package in an .exe file. However, the -F option generates a 50Mb file that is too slow to boot.

When I generate the application with the option --onedir the result is better, but the distribution of the application is more complicated due to the number of folders and files generated next to the .exe

I wish I could have all those files and folders in another location and that somehow the bootloader knew how to find them.

I know it's a demanded option that has not yet been resolved through the pyinstaller itself.

However, some time ago, there was a form using the% option --runtime-hook to an additional python module that calls the function sys.path.append()

However, this method does not currently seem to work. I've tried it with a "Helloworld.py" and it seems to be fine, but as soon as I insert some library as pandas, pygame the generated .exe needs to be at the same level as the rest of the generated files.

Thank you very much in advance.

    
asked by DrJuzo 04.08.2018 в 19:43
source

0 answers