I have a python file, and it is calling a .pyd file. However, this .pyd file depends on a DLL.
I can get it to work if I either:
- Copy the dll in question to the same location as the .pyd file.
- run the command
os.add_dll_directory('MYPATH\\LOCATION')
I was wondering if there is a way to add this permanently. I have read and tried what was suggested here: Permanently adding a file path to sys.path in Python but unfortunately, creating the .pth file didnt work.