Skip to content

Commit

Permalink
test remove win patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Sep 26, 2021
1 parent a5ac250 commit 77cc843
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/grass/ctypes/ctypesgen/libraryloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 77cc843

Please sign in to comment.