From c7b4d15c5c33e8ac05b054aa1d19751fb1b1275a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 1 Jun 2023 16:20:48 +0100 Subject: WaE: Py_SetPythonHome is deprecated since python 3.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pyuno/source/loader/pyuno_loader.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index 27ef6abbc198..05a03fe72c4d 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -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 ) -- cgit