mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-07 19:04:14 +00:00
fixed reset_all_installs
This commit is contained in:
parent
acaa818ccc
commit
ac89d8662a
@ -8,6 +8,7 @@ __license__ = "Apache 2.0"
|
||||
|
||||
from lollms.binding import LLMBinding, LOLLMSConfig
|
||||
from lollms.personality import AIPersonality, MSG_TYPE
|
||||
from lollms.helpers import ASCIIColors
|
||||
from lollms.paths import LollmsPaths
|
||||
#from lollms.binding import LLMBinding
|
||||
import importlib
|
||||
@ -17,11 +18,14 @@ from pathlib import Path
|
||||
from pathlib import Path
|
||||
|
||||
def reset_all_installs():
|
||||
ASCIIColors.info("Removeing .install files to force reinstall")
|
||||
folder_path = Path(__file__).parent
|
||||
path = Path(folder_path)
|
||||
for file_path in path.rglob("*.install"):
|
||||
|
||||
ASCIIColors.info(f"Searching files from {path}")
|
||||
for file_path in path.rglob("*.installed"):
|
||||
file_path.unlink()
|
||||
print(f"Deleted file: {file_path}")
|
||||
ASCIIColors.info(f"Deleted file: {file_path}")
|
||||
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 1f3f1bca97c5f60f7e165881683563f655072125
|
||||
Subproject commit 1731ef7fca4b2335408cccc08ebdb775cad73cea
|
Loading…
x
Reference in New Issue
Block a user