mirror of
https://github.com/Stone-Red-Code/HotspotAutoLogin.git
synced 2026-11-01 23:05:40 +01:00
Add files via upload
This commit is contained in:
@@ -44,11 +44,16 @@ echo Activating virtual environment...
|
|||||||
call %ACTIVATE_PATH%
|
call %ACTIVATE_PATH%
|
||||||
|
|
||||||
echo Checking the requirements...
|
echo Checking the requirements...
|
||||||
for /f "delims=" %%i in (%requirementsFile%) do (
|
:: Get the list of installed packages using pip freeze
|
||||||
pip freeze | findstr /c:%%i > nul
|
for /f "tokens=1,* delims==" %%i in ('pip freeze') do (
|
||||||
if errorlevel 1 (
|
set installed[%%i]=%%j
|
||||||
echo Installing package: %%i
|
)
|
||||||
pip install %%i --upgrade --quiet
|
|
||||||
|
:: Compare with the requirements from the requirements.txt file
|
||||||
|
for /f "tokens=1,* delims==" %%i in (%requirementsFile%) do (
|
||||||
|
if not "!installed[%%i]!"=="%%j" (
|
||||||
|
echo Installing package: %%i==%%j
|
||||||
|
pip install %%i==%%j --upgrade --quiet
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user