mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
Fix Bug installation
This commit is contained in:
@@ -49,12 +49,6 @@ class Install:
|
|||||||
def set_configuration(self):
|
def set_configuration(self):
|
||||||
|
|
||||||
self.skip_install = False
|
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()
|
defender_install_folder = os.getcwd()
|
||||||
venv_folder = '.pyenv'
|
venv_folder = '.pyenv'
|
||||||
unix_user_home_directory = os.path.expanduser("~")
|
unix_user_home_directory = os.path.expanduser("~")
|
||||||
@@ -76,6 +70,12 @@ class Install:
|
|||||||
venv_pip_executable=f'{os.path.join(defender_install_folder, venv_folder, "bin")}{os.sep}pip',
|
venv_pip_executable=f'{os.path.join(defender_install_folder, venv_folder, "bin")}{os.sep}pip',
|
||||||
venv_python_executable=f'{os.path.join(defender_install_folder, venv_folder, "bin")}{os.sep}python'
|
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:
|
def do_install(self) -> bool:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user