Perhaps the packaged app is importing the modules from their expected paths on your system. Test it on a machine that has no Python.

On 1/12/21 8:20 AM, Sylvain Berger wrote:

I am packaging a Qt window application using pyinstaller on windows 10; The application is working fine but I don't understand why it work (I hate when something looks like it shouldn't work but does work)

My application requires a few external module I wrote.

They are imported normally and are not hidden imports.

When using the --onedir method, I get a package with all the Qt dll and some standard library python module but not my external module. Yet the application is working fine, importing all the required modules and everything.

In my application if I import those modules and print them to see the path of the module, it points to the packaged folder, but the modules are not there, yet it works.

I feel really dumb asking this. It feels like I am simply missing something really obvious. what is going on?

Thanks

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/c21468b2-039a-42c7-844b-9a43767c4a03n%40googlegroups.com <https://groups.google.com/d/msgid/pyinstaller/c21468b2-039a-42c7-844b-9a43767c4a03n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Igor Riđanović

www.metafide.com <https://www.metafide.com/>


--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/214b9271-1484-0ff3-eaf0-56d03ea477ac%40gmail.com.

Reply via email to