Skip to content

Commit

Permalink
Merge pull request #2 from xylar/add_find_library
Browse files Browse the repository at this point in the history
Add call to find_library
  • Loading branch information
dengwirda committed Feb 14, 2020
2 parents 5465d5d + bd28a4a commit 77ee95f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jigsawpy/libsaw.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import ctypes as ct
import ctypes.util
import numpy as np
import inspect
import platform
Expand Down Expand Up @@ -61,7 +62,7 @@
if (JLIBNAME == Path()):
#---------------------------- search machine path for binary
if (platform.system() == WIN):
JLIBNAME = Path("jigsaw.dll")
JLIBNAME = Path(ctypes.util.find_library("jigsaw.dll"))

elif (platform.system() == LNX):
JLIBNAME = Path("libjigsaw.so")
Expand Down

0 comments on commit 77ee95f

Please sign in to comment.