I've got a python script that calls a dll in a directory off of C:\ (ctypes module). When I access the script, the errror I get back is
in <module> mydll = ctypes.cdll.LoadLibrary("C:\\DIR\\SomeDLL.dll")
...
...
OSError: [WinError 126] The specified module could not be found
When I run the script from command line it executes fine, so it seems to be a permissions problem, is it because the directory is outside of C:\inetpub?