It looks like os.add_dll_directory() works in a LIFO order, so we call os.add_dll_directory() from the end of the list of directories in %PATH% so that the directories are searched in the correct order.
It looks like os.add_dll_directory() works in a LIFO order, so we call os.add_dll_directory() from the end of the list of directories in %PATH% so that the directories are searched in the correct order.