This commit is contained in:
adator
2024-08-29 01:13:55 +02:00
parent 9cd089ee6e
commit 01dcc90d63
7 changed files with 179 additions and 47 deletions

View File

@@ -27,6 +27,9 @@ class Install:
def __init__(self) -> None:
self.set_configuration()
if self.skip_install:
return None
if not self.check_python_version():
# Tester si c'est la bonne version de python
@@ -45,6 +48,13 @@ 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("~")