From 4bf3fe3019b73c5a922ae41486ad22557e909fa3 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 12 May 2026 10:52:09 +0100 Subject: [PATCH] Fix os.add_dll_directory in docs to use absolute paths --- docs/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 08c4e113b..52bb50a8d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -40,8 +40,10 @@ os.environ["PATH"] += os.pathsep + os.path.abspath(binpath + 'Development/') os.environ["PATH"] += os.pathsep + os.path.abspath(binpath + 'Release/') if sys.platform == 'win32' and sys.version_info[1] >= 8: - os.add_dll_directory(binpath + 'Release/') - os.add_dll_directory(binpath + 'Development/') + 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'))