8000 Update base_path to fix issue resolving dll in windows isolation cont… · csegura/llama-cpp-python@8474665 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 8474665

Browse files
committed
Update base_path to fix issue resolving dll in windows isolation container.
1 parent aa2f8a5 commit 8474665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Load the library
2525
def _load_shared_library(lib_base_name: str):
2626
# Construct the paths to the possible shared library names
27-
_base_path = pathlib.Path(__file__).parent.resolve()
27+
_base_path = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
2828
# Searching for the library in the current directory under the name "libllama" (default name
2929
# for llamacpp) and "llama" (default name for this repo)
3030
3809 _lib_paths: List[pathlib.Path] = []

0 commit comments

Comments
 (0)
0