if i convert a python file from py to exe what about the module i created that the file imports?

It looks like Auto PY to EXE uses PyInstaller to do the real work here:

A .py to .exe converter using a simple graphical interface and PyInstaller in Python.

PyInstaller will automatically bundle any dependencies it finds:

What other modules and libraries does your script need in order to run? (These are sometimes called its “dependencies”.)

To find out, PyInstaller finds all the import statements in your script. It finds the imported modules and looks in them for import statements, and so on recursively, until it has a complete list of modules your script may use.

So as long as you import your dependencies somewhere reachable from your main script and your virtual environment is active, you should get the right behaviour automatically.

Note that you’ll probably need to build two executables: one for your server and a separate one for your client.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top