-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRun_VSR_Pro.bat
More file actions
43 lines (37 loc) · 1.07 KB
/
Run_VSR_Pro.bat
File metadata and controls
43 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
setlocal EnableDelayedExpansion
title Video Subtitle Remover Pro
:: Change to script directory
cd /d "%~dp0"
:: Check if venv exists
if not exist "venv\Scripts\python.exe" (
echo.
echo ============================================================
echo VIDEO SUBTITLE REMOVER PRO
echo ============================================================
echo.
echo First-time setup required.
echo Preparing the runtime and dependencies...
echo.
python setup.py
if errorlevel 1 (
echo.
echo Setup did not complete. Review the messages above, then try again.
pause
exit /b 1
)
)
echo Launching Video Subtitle Remover Pro...
if exist "venv\Scripts\pythonw.exe" (
start "" "venv\Scripts\pythonw.exe" "VideoSubtitleRemover.py"
exit /b 0
)
if exist "venv\Scripts\python.exe" (
start "" "venv\Scripts\python.exe" "VideoSubtitleRemover.py"
exit /b 0
)
echo.
echo The Python runtime could not be found in the virtual environment.
echo Re-run setup.py to repair the installation.
pause
exit /b 1