Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8474665

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+1-1Lines 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
_lib_paths: List[pathlib.Path] = []

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.