From b7094affa48efea6752cc2f1ba72dc3e7dae6138 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 11 Nov 2019 21:53:19 +0100 Subject: [PATCH] Fixed a dummy error message on Windows/Python 3.7 and really ignore --- src/pya/pya/pya.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pya/pya/pya.cc b/src/pya/pya/pya.cc index f32a1a32d..57d1d10bb 100644 --- a/src/pya/pya/pya.cc +++ b/src/pya/pya/pya.cc @@ -207,6 +207,8 @@ PythonInterpreter::PythonInterpreter (bool embedded) tl_assert (sizeof (wchar_t) == 2); + Py_SetPythonHome (L""); // really ignore $PYTHONHOME + without this, we get dummy error message about lacking path for libraries + const wchar_t *python_path = _wgetenv (L"KLAYOUT_PYTHONPATH"); if (python_path) {