Calling another .py from the converted .exe file #2579
-
Hi everyone, I just want to ask how can I call another I have a main python code called My question is can the converted Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@ntahlahweh You can't directly run the other py file through the converted exe if the system doesn't have python compiler installed. So there will be no point of executable if that's the case. |
Beta Was this translation helpful? Give feedback.
-
I think Solution 2 might be the best option for me. Just out of curiosity, how does solution 1 work? Is there any example that I can see? Another thing, I realised when I converted from Thank you |
Beta Was this translation helpful? Give feedback.
-
I tried the solution 2 and it works! I also did place combine the As for the one-file mode, it is interesting idea. I will try to convert it and see how it goes |
Beta Was this translation helpful? Give feedback.
@ntahlahweh
I haven't tried this before, but it should work since both apps use the same internal files packaged by PyInstaller. Compare the contents of both internal folders to ensure compatibility. If the second executable doesn't work, try copying any missing files from its internal folder.
Or you can also try one-file mode for the second exe, check this post for more info: #939