Author steve.dower
Recipients Dieter Weber, paul.moore, pyscripter, steve.dower, tds333, tim.golden, vstinner, zach.ware
Date 2019-02-04.07:33:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549265581.65.0.0700615572437.issue35706@roundup.psfhosted.org>
In-reply-to
Content
Py_Initialize() is not supposed to set it up. If you are embedding Python, you have to be responsible for configuring the paths that it uses - pyvenv.cfg is configuration for Python interactive, not the shared lib (using Windows terminology, it's configuration for python.exe but not python36.dll).

Personally, I am 100% against letting an embedded runtime automatically pick up any settings from the environment. You don't know where they came from. That said, I'm also in favor of making it easy for embedders to imitate the interactive shell's configuration.

Victor (nosied) and others are in the long process of updating embedded interpreter configuration to be easier to use, so adding him here as feedback, but I don't believe there is going to be a specific fix for this. Consider calling Py_SetPath before Py_Initialize to configure the search paths you want to use.
History
Date User Action Args
2019-02-04 07:33:03steve.dowersetrecipients: + steve.dower, paul.moore, tds333, vstinner, tim.golden, pyscripter, zach.ware, Dieter Weber
2019-02-04 07:33:01steve.dowersetmessageid: <1549265581.65.0.0700615572437.issue35706@roundup.psfhosted.org>
2019-02-04 07:33:01steve.dowerlinkissue35706 messages
2019-02-04 07:33:01steve.dowercreate