mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-02 02:51:17 +02:00
10 lines
300 B
Python
10 lines
300 B
Python
import os
|
|
import sys
|
|
|
|
# Determine the folder where the .pyd files will be located
|
|
pyd_subdir = os.path.join(sys._MEIPASS, 'pyds')
|
|
|
|
# Add the subfolder to sys.path so Python can find the .pyd modules
|
|
print("Augmenting PYD directory...")
|
|
if os.path.isdir(pyd_subdir):
|
|
sys.path.insert(0, pyd_subdir) |