From 847466562573191efa655753d9252f308c4fbdb0 Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Thu, 14 Sep 2023 14:51:43 -0400 Subject: [PATCH] Update base_path to fix issue resolving dll in windows isolation container. --- llama_cpp/llama_cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_cpp/llama_cpp.py b/llama_cpp/llama_cpp.py index 5cad038..9f0dfd2 100644 --- a/llama_cpp/llama_cpp.py +++ b/llama_cpp/llama_cpp.py @@ -24,7 +24,7 @@ from typing import List, Union # Load the library def _load_shared_library(lib_base_name: str): # Construct the paths to the possible shared library names - _base_path = pathlib.Path(__file__).parent.resolve() + _base_path = pathlib.Path(os.path.abspath(os.path.dirname(__file__))) # Searching for the library in the current directory under the name "libllama" (default name # for llamacpp) and "llama" (default name for this repo) _lib_paths: List[pathlib.Path] = []