From c15a5c2c665162f1a7ebf7c0c61eab4f29bcd468 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 19 May 2026 13:30:42 +0100 Subject: [PATCH] Add os.add_dll_directory cruft to verify-docstrings --- docs/verify-docstrings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/verify-docstrings.py b/docs/verify-docstrings.py index cfe70e07b..f6e2beebd 100644 --- a/docs/verify-docstrings.py +++ b/docs/verify-docstrings.py @@ -29,6 +29,12 @@ sys.path.insert(0, os.path.abspath(binpath + 'Release/pymodules')) os.environ["PATH"] = os.path.abspath(binpath + 'Development/') + os.pathsep + os.environ["PATH"] os.environ["PATH"] = os.path.abspath(binpath + 'Release/') + os.pathsep + os.environ["PATH"] +if sys.platform == 'win32' and sys.version_info[1] >= 8: + for sub in ['Release', 'Development']: + path = os.path.abspath(binpath + sub) + if os.path.exists(path): + os.add_dll_directory(path) + # path to module libraries for linux sys.path.insert(0, os.path.abspath('../build/lib'))