Skip to content

Commit

Permalink
Fix path search for Qrack library
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Jul 4, 2024
1 parent 1650767 commit 61e851a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pyqrack/qrack_system/qrack_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

class QrackSystem:
def __init__(self):
path = "."
shared_lib_path = ""
if os.environ.get('PYQRACK_SHARED_LIB_PATH') != None:
shared_lib_path = os.environ.get('PYQRACK_SHARED_LIB_PATH')
elif _platform == "win32":
shared_lib_path = "qrack_lib/qrack_pinvoke.dll"
shared_lib_path = os.path.dirname(__file__) + "/qrack_lib/qrack_pinvoke.dll"
elif _platform == "darwin":
shared_lib_path = "qrack_lib/libqrack_pinvoke.dylib"
shared_lib_path = os.path.dirname(__file__) + "/qrack_lib/libqrack_pinvoke.dylib"
else:
shared_lib_path = "qrack_lib/libqrack_pinvoke.so"
shared_lib_path = os.path.dirname(__file__) + "/qrack_lib/libqrack_pinvoke.so"

try:
self.qrack_lib = CDLL(shared_lib_path)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup


VERSION = "1.29.9"
VERSION = "1.29.10"

# Read long description from README.
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
Expand Down

0 comments on commit 61e851a

Please sign in to comment.