Replies: 1 comment 1 reply
-
PyInstaller uses embedded python interpreter to run the frozen entry-point script and collected python modules. So there's no external python.exe interpreter involved, and there's no externally accessible virtual environment left, either (python modules are byte-compiled and collected into executable-embedded archive, while shared libraries and data files are collected into subdirectories of dist directory). So the frozen bundle is (or should be, at least...) self-contained. If you want to re-use the mainBundled.exe as your python interpreter for running arbitrary external .py scripts, you'll need to implement the redispatch logic based on for example command-line switches. This would allow you to run You could also call external python interpreter that is installed on the target machine. But if you want to deal with virtual environments, you'll probably have to set up environment variables in same way as the If you freeze |
Beta Was this translation helpful? Give feedback.
-
I am looking to try and create a subprocess from mainBundled.exe and the subprocess is either a script.py or a scriptBundled.exe
Have it execute using the self-contained virtual environment of mainBundled.exe is this possible?
I am not sure how I would get that, it is the first argument of the array.
Then I know you need the path to the bundledscript.exe or the mainBundled.exe
I guess worst case I can just have each subprocess have its own environment if this is not possible.
Beta Was this translation helpful? Give feedback.
All reactions