I am currently embedding Python3 into my C++ application.
We also ships a defined version of Python3. Currently Py_Initialize finds the system python in /usr/lib/python3.5 (which we do not want). I could not yet figure out how I can strip the search path before calling Py_Initialize and force it to search in my custom path.
asked Dec 23, 2016 at 15:38
abergmeier
14.2k16 gold badges81 silver badges137 bronze badges
1 Answer 1
It can be done with Py_SetPythonHome.
answered Dec 23, 2016 at 15:40
abergmeier
14.2k16 gold badges81 silver badges137 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py