mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
don't unpack pyd
This commit is contained in:
parent
1a23d49c32
commit
4d9ccddc2c
1 changed files with 2 additions and 0 deletions
|
@ -494,6 +494,8 @@ def unpack_to_dir(destpath = ""):
|
||||||
for item in os.listdir(srcpath):
|
for item in os.listdir(srcpath):
|
||||||
s = os.path.join(srcpath, item)
|
s = os.path.join(srcpath, item)
|
||||||
d = os.path.join(destpath, item)
|
d = os.path.join(destpath, item)
|
||||||
|
if item.endswith('.pyd'): # Skip .pyd files
|
||||||
|
continue
|
||||||
if os.path.isdir(s):
|
if os.path.isdir(s):
|
||||||
shutil.copytree(s, d, False, None)
|
shutil.copytree(s, d, False, None)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue