mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-13 10:18:49 +02:00
updated lite, added extra check in pyinstaller cleanup
This commit is contained in:
+520
-176
File diff suppressed because one or more lines are too long
+2
-1
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user