20 lines
413 B
Batchfile
20 lines
413 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "PROJECT_ROOT=%~dp0wechat_rpa"
|
|
set "PROJECT_PYTHON=%PROJECT_ROOT%\.venv\Scripts\python.exe"
|
|
|
|
if not exist "%PROJECT_PYTHON%" (
|
|
echo [ERROR] Project Python was not found: %PROJECT_PYTHON%
|
|
echo Please rebuild the environment under wechat_rpa\.venv first.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
pushd "%PROJECT_ROOT%"
|
|
"%PROJECT_PYTHON%" app_main.py
|
|
set "EXIT_CODE=%ERRORLEVEL%"
|
|
popd
|
|
|
|
exit /b %EXIT_CODE%
|