From 6a77c3ae9ab608f2a49d98d7378e895f18b3e77f Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 18 Apr 2021 15:46:55 +0200 Subject: [PATCH] Another update to fix windows tests (pymod with Python 3.8+3.9) --- testdata/pymod/pya_tests.py | 1 + testdata/pymod/testprep.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/testdata/pymod/pya_tests.py b/testdata/pymod/pya_tests.py index cf405c81a..c026e721b 100644 --- a/testdata/pymod/pya_tests.py +++ b/testdata/pymod/pya_tests.py @@ -2,6 +2,7 @@ import sys import os import unittest +import testprep sys.path.append(os.path.join(os.path.dirname(__file__), "..", "python")) diff --git a/testdata/pymod/testprep.py b/testdata/pymod/testprep.py index 92182556a..a3263249f 100644 --- a/testdata/pymod/testprep.py +++ b/testdata/pymod/testprep.py @@ -2,7 +2,7 @@ import os # Whatever drove these people to drop PATH support for Windows in Python 3.8 (bpo-36085) -# they at least had the mercy to let us emulate it through os.add_dll_directory. +# they at least had mercy and let us emulate PATH through os.add_dll_directory. external_dll_path = os.getenv("KLAYOUT_PYMOD_DLL_PATH") if ("add_dll_directory" in os.__dict__) and external_dll_path is not None: