People can just print sys.path if they need to see what it is
It would be nice for the python API documentation to help here.
It says Py_GetPath is deprecated, and to look at sys.path instead.
But it doesn't say how to get sys.path from the API. A quick look
around shows how to get sys.path from the Python code, but not
from the API.
Instead of doing the right thing, we just remove the deprecated
code.
PyConfig config;
PyStatus status;
wchar_t *wide_name;
- char *path;
fr_assert(!Py_IsInitialized());
PyConfig_Clear(&config);
- /*
- * Report the path
- */
- path = Py_EncodeLocale(Py_GetPath(), NULL);
- LOAD_INFO("Python path set to \"%s\"", path);
- PyMem_Free(path);
-
global_interpreter = PyEval_SaveThread(); /* Store reference to the main interpreter and release the GIL */
return 0;