mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
updated lite, added extra check in pyinstaller cleanup
This commit is contained in:
parent
2f3597c29a
commit
cfbe8cffbd
2 changed files with 522 additions and 177 deletions
|
@ -2744,7 +2744,8 @@ def delete_old_pyinstaller():
|
|||
if absdirpath!=selfdirpath and (time.time() - os.path.getctime(absdirpath)) > 14400: # remove if older than 4 hours
|
||||
kobold_itemcheck1 = os.path.join(absdirpath, 'koboldcpp_default.dll')
|
||||
kobold_itemcheck2 = os.path.join(absdirpath, 'koboldcpp_default.so')
|
||||
if os.path.exists(kobold_itemcheck1) or os.path.exists(kobold_itemcheck2):
|
||||
kobold_itemcheck3 = os.path.join(absdirpath, 'klite.embd')
|
||||
if os.path.exists(kobold_itemcheck1) or os.path.exists(kobold_itemcheck2) or os.path.exists(kobold_itemcheck3):
|
||||
try:
|
||||
shutil.rmtree(absdirpath)
|
||||
print(f"Deleted orphaned pyinstaller dir: {absdirpath}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue