STINNER Victor <vstin...@python.org> added the comment:
Python has an unit test on Py_SetPath(): test_embed.test_init_setpath. > Write following code that only call Py_Initialize(): (...) Do you mean that on Windows Python looks for modules in C:\Lib\ just by calling Py_Initialize()? > According to https://docs.python.org/3/c-api/init.html: "Py_SetPath() set the > default module search path. I don't understand. Do you have your issue with and without calling Py_SetPath()? Can you please provide an example of code reproducing the issue? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42902> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com