Skip to content

Commit 981a3eb

Browse files
committed
Try full path and basename
Signed-off-by: Roger Aiudi <[email protected]>
1 parent 5ed398d commit 981a3eb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,12 @@ def get_output(*args, **kwargs):
213213
with open('dlls.txt') as dlls:
214214
for dll in filter(None, map(str.strip, dlls)):
215215
try:
216-
ctypes.CDLL(os.path.basename(dll))
217-
except Exception as e:
218-
print("!FAILED:", dll, type(e).__name__, e)
216+
ctypes.CDLL(dll)
217+
except:
218+
try:
219+
ctypes.CDLL(os.path.basename(dll))
220+
except Exception as e:
221+
print("!FAILED:", dll, type(e).__name__, e)
219222

220223
GSSAPI_LIB = ctypes.CDLL(os.path.join(main_path, main_lib))
221224

0 commit comments

Comments
 (0)