From fb8ccffd3f7e59548e0a2187091e243749cd9f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20H=C3=B6chenberger?= Date: Fri, 14 May 2021 08:19:31 +0200 Subject: [PATCH] BF: Fix he DLL search for Python 3.6 and 3.7 --- CHANGES.md | 5 +++++ pyqmix/tools.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index dd92055..60f2af4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +Version 2021.1.2 +---------------- +* The DLL search improvement introduced in 2021.1 is now working correctly for + Python 3.6 and 3.7, too. + Version 2021.1 -------------- * Improve automated DLL search path configuration; the DLLs should be loadable diff --git a/pyqmix/tools.py b/pyqmix/tools.py index 7999191..b037079 100644 --- a/pyqmix/tools.py +++ b/pyqmix/tools.py @@ -94,7 +94,7 @@ def find_dll(dll_dir, dll_filename): try: # Python >= 3.8 os.add_dll_directory(dll_dir) - except NameError: + except AttributeError: pass return dll_path @@ -109,7 +109,7 @@ def find_dll(dll_dir, dll_filename): try: # Python >= 3.8 os.add_dll_directory(dll_dir) - except NameError: + except AttributeError: pass return dll_path