def add_dll_directory(path): """Add a path to the DLL search path. This search path is used when resolving dependencies for imported extension modules (the module itself is resolved through sys.path), and also by ctypes. Remove the directory by calling close() on the returned object or using it in a with statement. """ import nt cookie = nt._add_dll_directory(path) return _AddedDllDirectory(path, cookie, nt._remove_dll_directory)
def add_dll_directory(path): import nt cookie = nt._add_dll_directory(path) return _AddedDllDirectory(path, cookie, nt._remove_dll_directory)