diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-01 16:20:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-01 18:23:28 +0200 |
commit | c7b4d15c5c33e8ac05b054aa1d19751fb1b1275a (patch) | |
tree | d6faa12202ec6a15de3ce279675690e6321bf455 /pyuno | |
parent | 9ff2b61876843584d6c4fb3cadda48089b8a84b7 (diff) |
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>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 ) |