windows - Use the python interpreter packaged with py2exe -
windows - Use the python interpreter packaged with py2exe -
hi guys first question on stackoverflow , unfortunately it's unusual one.
i have python script want distribute windows, people might not have python installed. utilize py2exe. problem in script run other python scripts using subprocess, requires python interpreter programme execute. don't have python interpreter installed on windows, there way ignore interpreter , work around problem? there way phone call python interpreter pakcaged py2exe?
it's more simple think: instead of starting sub-processes, utilize built-in eval()
command execute scripts.
[edit] redirect stdio, replace sys.stdout/sys.stderr buffers or else supports "write()".
to restore original values, sys
module offers __stdout__
, etc.
[edit2] haven't tried might work: add together "python.exe" set of files py2exe creates.
from main code, re-create files py2exe created + python.exe temporary directory. add together scripts.
now start new python interpreter little script adds temp folder , library.zip
sys.path
note: python doesn't have "installed" windows application. in fact, can re-create files new place. long search path correct, works.
windows py2exe python
Comments
Post a Comment