mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-04 13:39:56 +00:00
add script working dir to convert script
This commit is contained in:
parent
622599d8b5
commit
0240b72895
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ from pathlib import Path
|
|||
|
||||
import torch
|
||||
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
if script_dir not in sys.path:
|
||||
sys.path.append(script_dir)
|
||||
|
||||
if 'NO_LOCAL_GGUF' not in os.environ:
|
||||
sys.path.insert(1, str(Path(__file__).parent / 'gguf-py'))
|
||||
import gguf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue