Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion khiva/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def __init__(self):
if platform.system() == 'Darwin':
self.c_khiva_library = ctypes.CDLL('libkhiva_c.dylib')
elif platform.system() == 'Windows':
if sys.version_info.major == 3 and sys.version_info.minor == 8:
# This lines below are needed to find dll_dir in python 3.8 an above
if sys.version_info.major == 3 and sys.version_info.minor >= 8:
import os
os.add_dll_directory(os.getenv("KHIVA_DLL_DIR", default=r'C:\Program Files\Khiva\v0\lib'))
self.c_khiva_library = ctypes.CDLL('khiva_c.dll')
Expand Down