From 4f9effab7e4fd157a9f3ef00fea00cf7fe45727f Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 25 Jan 2024 13:35:23 +0100 Subject: [PATCH] Trying to fix Python 3.6 builds + tests --- src/pya/pya/pya.cc | 5 +++-- testdata/lym/m2.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pya/pya/pya.cc b/src/pya/pya/pya.cc index 0361b0755..2310cf9b6 100644 --- a/src/pya/pya/pya.cc +++ b/src/pya/pya/pya.cc @@ -251,8 +251,9 @@ PythonInterpreter::PythonInterpreter (bool embedded) if (! has_klayout_pythonhome) { - // Use our own installation path for PYTHOHOME unless given - Py_SetPythonHome (tl::to_wstring (inst_dir).c_str ()); + // Use our own installation path for PYTHONHOME unless given + // (Our Windows installation comes with its own copy of the libraries) + tl::set_env (pythonhome_name, inst_dir); } diff --git a/testdata/lym/m2.py b/testdata/lym/m2.py index 401d57365..ca794598c 100644 --- a/testdata/lym/m2.py +++ b/testdata/lym/m2.py @@ -1,6 +1,7 @@ import os import inspect +import pya def lineno(): return inspect.currentframe().f_back.f_lineno