WaE: Py_SetPythonHome is deprecated since python 3.11

not obvious how to replace it, so just accept for now

Change-Id: Id3fc4c95a5cc60e078f06faaa024faa9c770de20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152504
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2023-06-01 16:20:48 +01:00
parent 9ff2b61876
commit c7b4d15c5c

View File

@@ -129,7 +129,9 @@ static void setPythonHome ( const OUString & pythonHome )
PyErr_SetString(PyExc_SystemError, "python home path is too long");
return;
}
Py_SetPythonHome(wide);
SAL_WNODEPRECATED_DECLARATIONS_PUSH
Py_SetPythonHome(wide); // deprecated since python 3.11
SAL_WNODEPRECATED_DECLARATIONS_POP
}
static void prependPythonPath( std::u16string_view pythonPathBootstrap )