Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Apr 17, 2024
1 parent 6637d58 commit 1c4a546
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12845,10 +12845,14 @@ def __init__(self, version=2.2, msx=False, loadlib=True, customlib=None):
# Check platform and Load epanet library
# libname = f"epanet{str(version).replace('.', '_')}"
if customlib is not None:
self.LibEPANET = customlib
if not os.path.isabs(customlib):
self.LibEPANET = os.path.join(os.getcwd(), customlib)
else:
self.LibEPANET = customlib
loadlib = False
self._lib = cdll.LoadLibrary(self.LibEPANET)
self.LibEPANETpath = os.path.dirname(self.LibEPANET)

if loadlib:
libname = f"epanet2"
ops = platform.system().lower()
Expand Down

0 comments on commit 1c4a546

Please sign in to comment.