-
Notifications
You must be signed in to change notification settings - Fork 7
/
RVC-GUI_English.bat
24 lines (20 loc) · 797 Bytes
/
RVC-GUI_English.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
REM Get the path of the script's directory
set "scriptDir=%~dp0"
REM Set the path to the Python runtime folder
set "runtimeFolder=%scriptDir%runtime"
REM Check if the runtime folder exists
REM Check if the runtime folder exists
if exist "%runtimeFolder%\python.exe" (
REM Runtime folder exists, so run the file using the runtime Python
echo Running with the runtime Python, Please wait.
msg * "Running with the runtime Python, Please wait."
"runtime/python.exe" rvcgui-en.py --pycmd "runtime/python.exe"
pause
) else (
REM Runtime folder does not exist, so run the file using the system Python
echo Running with the system Python.
msg * "Running with the system Python."
python.exe rvcgui-en.py --pycmd python.exe
pause
)