My working code broke after upgrading to Python 3.8.1. Following line used to work, but now returns an error message:
cdll.LoadLibrary('mydllpath/mydll.dll')
==> Could not find module 'mydll.dll'. Try using the full path with constructor syntax.
Someone suggested adding the dll folder to the dll search path. So I changed the code to:
os.chdir('mydllpath')
print(os.listdir()) # Proof of success
os.add_dll_directory('mydllpath')
cdll.LoadLibrary('my.dll')
# cdll.LoadLibrary('mydllpath/my.dll') # Also unsuccessful
Well, the print() on second line of code lists mydll.dll as one of the files in the directory, but Python/cdll still returns the exact same error message: "Could not find ..."
Looking for ideas/suggestions. Thanks ...