Fix Bug installation

This commit is contained in:
adator
2024-08-29 01:30:10 +02:00
parent 01dcc90d63
commit ab15cce82b

View File

@@ -49,12 +49,6 @@ class Install:
def set_configuration(self):
self.skip_install = False
# Exclude Windows OS
if os.name == 'nt':
#print('/!\\ Skip installation /!\\')
self.skip_install = True
return False
defender_install_folder = os.getcwd()
venv_folder = '.pyenv'
unix_user_home_directory = os.path.expanduser("~")
@@ -77,6 +71,12 @@ class Install:
venv_python_executable=f'{os.path.join(defender_install_folder, venv_folder, "bin")}{os.sep}python'
)
# Exclude Windows OS
if os.name == 'nt':
#print('/!\\ Skip installation /!\\')
self.skip_install = True
def do_install(self) -> bool:
full_service_file_path = os.path.join(self.config.unix_systemd_folder, self.config.service_file_name)