8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf339c9 commit ee71ce8Copy full SHA for ee71ce8
llama_cpp/llama_cpp.py
@@ -27,7 +27,9 @@ def _load_shared_library(lib_base_name):
27
28
if ("LLAMA_LIB" in os.environ):
29
lib_base_name = os.environ["LLAMA_LIB"]
30
- _lib_paths = [pathlib.Path(os.environ["LLAMA_LIB"]).resolve()]
+ _lib = pathlib.Path(lib_base_name)
31
+ _base_path = _lib.parent.resolve()
32
+ _lib_paths = [_lib.resolve()]
33
34
# Add the library directory to the DLL search path on Windows (if needed)
35
if sys.platform == "win32" and sys.version_info >= (3, 8):
0 commit comments