Skip to content

Commit

Permalink
update lib folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Mar 23, 2024
1 parent 29dc893 commit 5858772
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12803,15 +12803,16 @@ def __init__(self, version=2.2, msx=False):
self.binfile = None

# Check platform and Load epanet library
libname = f"epanet{str(version).replace('.', '_')}"
# libname = f"epanet{str(version).replace('.', '_')}"
libname = f"epanet"
ops = platform.system().lower()
if ops in ["windows"]:
if "32" in str(platform.architecture()):
self.LibEPANET = resource_filename("epyt", os.path.join("libraries", "win", libname, '32bit',
f"{libname[:-2]}.dll"))
self.LibEPANET = resource_filename("epyt", os.path.join("libraries", "win", '32bit',
f"{libname}2.dll"))
elif "64" in str(platform.architecture()):
self.LibEPANET = resource_filename("epyt", os.path.join("libraries", "win", libname, '64bit',
f"{libname[:-2]}.dll"))
self.LibEPANET = resource_filename("epyt", os.path.join("libraries", "win", '64bit',
f"{libname}2.dll"))
elif ops in ["darwin"]:
self.LibEPANET = resource_filename("epyt", os.path.join("libraries", f"mac/lib{libname}.dylib"))
else:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5858772

Please sign in to comment.