On Fri, Jan 27, 2017 at 12:04 PM Dave Page <dpage@pgadmin.org> wrote:
On Thu, Jan 26, 2017 at 7:22 PM, Jan Alexander Steffens <jan.steffens@gmail.com> wrote: > Looking through the cpython code, Py_SetPath(NULL) clears the calculated > module search path again. Try calling this before the Py_Initialize.
I did mean Py_SetPath, not PySys_SetPath. Unfortunately, after checking again it turns out this is Python 3 only. Python 2 has no means of changing the module_search_path from outside. So, there it definitely needs a restart. :-(