mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
Fix Windows Setup not detecting python
This commit is contained in:
@@ -3,13 +3,14 @@ rem Python Check
|
||||
where python >nul 2>&1 && (
|
||||
deactivate >nul 2>&1
|
||||
echo [INSTALL] Python is available
|
||||
|
||||
:redo
|
||||
rem Python Version Check
|
||||
for /F "tokens=* USEBACKQ" %%F IN (`python --version`) DO (
|
||||
set var=%%F
|
||||
)
|
||||
echo %var%|findstr /R "[3].[89]" >nul
|
||||
if errorlevel 1 (
|
||||
if "%var%"=="" goto redo
|
||||
echo [ERROR] MobSF dependencies require Python 3.8/3.9. Your python points to %var%
|
||||
exit /b
|
||||
) else (
|
||||
|
||||
Reference in New Issue
Block a user