diff --git a/python/grass/ctypes/ctypesgen/libraryloader.py b/python/grass/ctypes/ctypesgen/libraryloader.py index 16d4daeffa2..867c9c06104 100644 --- a/python/grass/ctypes/ctypesgen/libraryloader.py +++ b/python/grass/ctypes/ctypesgen/libraryloader.py @@ -322,11 +322,11 @@ def getplatformpaths(self, libname): class WindowsLibraryLoader(LibraryLoader): name_formats = ["%s.dll", "lib%s.dll", "%slib.dll", "%s"] - def __init__(self): - super().__init__() - for p in os.getenv("PATH").split(";"): - if os.path.exists(p) and hasattr(os, 'add_dll_directory'): - os.add_dll_directory(p) + # def __init__(self): + # super().__init__() + # for p in os.getenv("PATH").split(";"): + # if os.path.exists(p) and hasattr(os, 'add_dll_directory'): + # os.add_dll_directory(p) class Lookup(LibraryLoader.Lookup): def __init__(self, path):