From 1e51cf6901c65bed0bc2b9f49612fcf64ca278d4 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 30 Jan 2024 19:29:11 +0100 Subject: [PATCH] Fixing Windows installation without path initialization file --- src/pya/pya/pya.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pya/pya/pya.cc b/src/pya/pya/pya.cc index 2310cf9b6..09cb9f754 100644 --- a/src/pya/pya/pya.cc +++ b/src/pya/pya/pya.cc @@ -290,9 +290,9 @@ PythonInterpreter::PythonInterpreter (bool embedded) } } - } + Py_SetPath (tl::to_wstring (path).c_str ()); - Py_SetPath (tl::to_wstring (path).c_str ()); + } } catch (tl::Exception &ex) { tl::error << tl::to_string (tr ("Evaluation of Python path expression failed")) << ": " << ex.msg ();