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

Commit efdac67

Browse files
committed
MAINT: check_installed_package py35
* improve Windows/Python 3.5 compatibility of the DLL path checking code in check_installed_package.py
1 parent 9920ffa commit efdac67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_installed_package.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def check_dll_paths(mod):
3232
for filename in Path(install_basedir).rglob('*.dll'):
3333
list_filepaths.append(filename)
3434

35-
reference_basepath = os.path.dirname(list_filepaths.pop(0))
35+
reference_basepath = os.path.dirname(str(list_filepaths.pop(0)))
3636

3737
for filepath in list_filepaths:
38-
if os.path.dirname(filepath) != reference_basepath:
38+
if os.path.dirname(str(filepath)) != reference_basepath:
3939
print("mismatch between current DLL file path: ",
4040
filepath,
4141
"and the reference file path for packaged DLLs: ",

0 commit comments

Comments
 (0)