Added missing file.

This commit is contained in:
Matthias Koefferlein 2021-04-18 12:53:44 +02:00
parent b1943c8b4e
commit de83fb7e8a
1 changed files with 11 additions and 0 deletions

11
testdata/pymod/testprep.py vendored Normal file
View File

@ -0,0 +1,11 @@
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.
external_dll_path = os.getenv("KLAYOUT_PYMOD_DLL_PATH")
if ("add_dll_directory" in os.__dict__) and external_dll_path is not None:
for p in external_dll_path.split(os.pathsep):
os.add_dll_directory(p)