Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
v2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger14n committed May 24, 2023
1 parent 8eb82c1 commit a1eae17
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions RVC-GUI.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
@echo off

rem Check if the specific Python runtime folder exists
if exist "runtime\python.exe" (
echo Running using the specific Python runtime.
runtime/python.exe rvcgui.py --pycmd runtime/python.exe
pause
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.
"runtime/python.exe" rvcgui.py --pycmd "runtime/python.exe"
pause
) else (
echo Running using the system Python.
python.exe rvcgui.py --pycmd python.exe
REM Runtime folder does not exist, so run the file using the system Python
echo Running with the system Python.
python.exe rvcgui.py --pycmd python.exe
pause
)

0 comments on commit a1eae17

Please sign in to comment.