Skip to content

Commit dd62c5b

Browse files
committed
Py_GetPath is deprecated and will be remove.
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.
1 parent d43a792 commit dd62c5b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/modules/rlm_python/rlm_python.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,6 @@ static int libpython_init(void)
10981098
PyConfig config;
10991099
PyStatus status;
11001100
wchar_t *wide_name;
1101-
char *path;
11021101

11031102
fr_assert(!Py_IsInitialized());
11041103

@@ -1166,13 +1165,6 @@ static int libpython_init(void)
11661165

11671166
PyConfig_Clear(&config);
11681167

1169-
/*
1170-
* Report the path
1171-
*/
1172-
path = Py_EncodeLocale(Py_GetPath(), NULL);
1173-
LOAD_INFO("Python path set to \"%s\"", path);
1174-
PyMem_Free(path);
1175-
11761168
global_interpreter = PyEval_SaveThread(); /* Store reference to the main interpreter and release the GIL */
11771169

11781170
return 0;

0 commit comments

Comments
 (0)