For loading DLL libraries in Python 3.8+ I understand the the path environemnt variable is not used anymore to search for dependencies. Therefore the function os. add_dll_directory() should be used to add directories to the search path. That works on my machine.
Is it possible that the directories are added permanently? I have noticed that now everything is loaded correctly also without adding the dll directory first using the function mentioned. I cannot reproduce the error where the dependencies were not found.
From the documentation I did not understand that anything is changed permanently.