[issue29503] Make embedded-Python detectable

Paul Moore report at bugs.python.org
Wed Feb 8 11:20:39 EST 2017


Paul Moore added the comment:

With the embedded distribution, you should probably be calling the Python API rather than running python.exe. And if you do it that way, you can set sys.path via the API before calling user code.

Alternatively, you can set up a site.py within your copy of the embedded distribution to configure the PATH you want.

Or you can just modify the _pth file that's in the embedded distribution. That's pretty much what it's for...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29503>
_______________________________________


More information about the Python-bugs-list mailing list