Fix reviews
This commit is contained in:
1 parent
7473aaebc5
commit
f8fa68b5b6
4 files changed
+2
-18
No files matched your search
@@ -10,7 +10,7 @@ if not exist "%dirpath%\env" (
|
||||
echo No virtual environment found! Run setup_env.bat to set it up first.
|
||||
echo:
|
||||
pause
|
||||
exit /b
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Check if pyinstaller and pywin32 is installed in the virtual environment
|
||||
|
||||
Regular → Executable
+1
-1
@@ -2,9 +2,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import platform
|
||||
from pathlib import Path
|
||||
from typing import Any, TYPE_CHECKING
|
||||
import platform
|
||||
|
||||
SELF_PATH = str(Path(".").resolve())
|
||||
if SELF_PATH not in sys.path:
|
||||
|
||||
Regular → Executable
-8
@@ -31,16 +31,8 @@ REM Activate the virtual environment and install requirements
|
||||
echo:
|
||||
echo Installing requirements.txt...
|
||||
"%dirpath%\env\scripts\python" -m pip install -U pip
|
||||
if %errorlevel% NEQ 0 (
|
||||
echo Failed to upgrade pip.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
"%dirpath%\env\scripts\pip" install wheel
|
||||
if %errorlevel% NEQ 0 (
|
||||
echo Failed to install wheel.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
"%dirpath%\env\scripts\pip" install -r "%dirpath%\requirements.txt"
|
||||
if %errorlevel% NEQ 0 (
|
||||
|
||||
@@ -28,16 +28,8 @@ fi
|
||||
echo
|
||||
echo "Installing requirements.txt..."
|
||||
"$dirpath/env/bin/python" -m pip install -U pip
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to upgrade pip."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$dirpath/env/bin/pip" install wheel
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to install wheel."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$dirpath/env/bin/pip" install -r "$dirpath/requirements.txt"
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
Reference in new issue
Block a user