Skip to content

Commit 4dbaac1

Browse files
committed
Добавлена проверка Python (2)
1 parent f3f5677 commit 4dbaac1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

start.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ python -c "import sys; print(sys.version_info[:2])" > version.txt
2020
set /p version=<version.txt
2121
IF "%version%" LSS "3.10" (
2222
echo Your version of Python is not supported. Please install Python 3.10
23-
exit /b
23+
pause
2424
)
2525
IF "%version%" GEQ "3.11" (
2626
echo Your version of Python is not supported. Please install Python 3.10
27-
exit /b
27+
pause
2828
)
2929

3030
python -m venv venv

start_endpoint.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ python -c "import sys; print(sys.version_info[:2])" > version.txt
1717
set /p version=<version.txt
1818
IF "%version%" LSS "3.10" (
1919
echo Your version of Python is not supported. Please install Python 3.10
20-
exit /b
20+
pause
2121
)
2222
IF "%version%" GEQ "3.11" (
2323
echo Your version of Python is not supported. Please install Python 3.10
24-
exit /b
24+
pause
2525
)
2626

2727
python -m venv venv

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(3, 11)

0 commit comments

Comments
 (0)