MSLNZ / msl-loadlib

Load a shared library (and access a 32-bit library from 64-bit Python)
MIT License
75 stars 17 forks source link

AttributeError: 'WindowsPath' object has no attribute 'rfind' #8

Closed jborbely closed 6 years ago

jborbely commented 6 years ago

This issue was discovered while investigating issue #6

Instantiating the LoadLibrary class raises an AttributeError if the path parameter is created using the pathlib module and the interpreter is Python 3.5. See here for the reference.

The error results from passing a <class 'pathlib.WindowsPath'> object to os.path.splitext.

jborbely commented 6 years ago

The LoadLibrary class can now accept a <class 'pathlib.Path'> object.