mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 01:05:09 +02:00
only add dll directory on windows
This commit is contained in:
+4
-3
@@ -167,9 +167,10 @@ def init_library():
|
||||
abs_path = getabspath()
|
||||
|
||||
#add all potential paths
|
||||
os.add_dll_directory(dir_path)
|
||||
os.add_dll_directory(abs_path)
|
||||
os.add_dll_directory(os.getcwd())
|
||||
if os.name=='nt':
|
||||
os.add_dll_directory(dir_path)
|
||||
os.add_dll_directory(abs_path)
|
||||
os.add_dll_directory(os.getcwd())
|
||||
handle = ctypes.CDLL(os.path.join(dir_path, libname))
|
||||
|
||||
handle.load_model.argtypes = [load_model_inputs]
|
||||
|
||||
Reference in New Issue
Block a user