Fixed stuff

This commit is contained in:
Saifeddine ALOUI 2023-12-09 23:42:38 +01:00
parent 8322c381b0
commit 01ec6b724b
2 changed files with 3 additions and 4 deletions

View File

@ -42,11 +42,10 @@ class LOLLMSExtension():
self.configuration_path= self.configuration_path/"config.yaml"
self.installation_option = installation_option
self.configuration_file_path = self.configuration_path/f"config.yaml"
# Installation
if (not self.configuration_file_path.exists() or self.installation_option==InstallOption.FORCE_INSTALL) and self.installation_option!=InstallOption.NEVER_INSTALL:
if (not self.configuration_path.exists() or self.installation_option==InstallOption.FORCE_INSTALL) and self.installation_option!=InstallOption.NEVER_INSTALL:
self.install()
self.config.save(self.configuration_file_path)
self.config.save(self.configuration_path)
def build_extension(self):

View File

@ -241,7 +241,7 @@ class LollmsSD:
ASCIIColors.info("Running on windows")
script_path = self.sd_folder / "lollms_sd.bat"
if share:
subprocess.Popen(script_path+" --share", cwd=self.sd_folder)
subprocess.Popen(str(script_path) +" --share", cwd=self.sd_folder)
else:
subprocess.Popen(script_path, cwd=self.sd_folder)
else: