Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Commit 729b6f3

Browse files
Merge pull request #89 from psyfood/dll
BF: Fix DLL search for Python 3.6 and 3.7
2 parents 555c56b + fb8ccff commit 729b6f3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 2021.1.2
2+
----------------
3+
* The DLL search improvement introduced in 2021.1 is now working correctly for
4+
Python 3.6 and 3.7, too.
5+
16
Version 2021.1
27
--------------
38
* Improve automated DLL search path configuration; the DLLs should be loadable

pyqmix/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def find_dll(dll_dir, dll_filename):
9494
try:
9595
# Python >= 3.8
9696
os.add_dll_directory(dll_dir)
97-
except NameError:
97+
except AttributeError:
9898
pass
9999

100100
return dll_path
@@ -109,7 +109,7 @@ def find_dll(dll_dir, dll_filename):
109109
try:
110110
# Python >= 3.8
111111
os.add_dll_directory(dll_dir)
112-
except NameError:
112+
except AttributeError:
113113
pass
114114

115115
return dll_path

0 commit comments

Comments
 (0)