-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzlauncher.bat
More file actions
33 lines (26 loc) · 817 Bytes
/
zlauncher.bat
File metadata and controls
33 lines (26 loc) · 817 Bytes
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
@echo off
title Uta Yuki
REM Change to the directory where the batch file is located
cd /d "%~dp0"
REM Display the contents of ascii.txt
type ascii.txt
REM Activate the virtual environment
echo Activating virtual environment: venv...
call "%~dp0venv\Scripts\activate"
REM Check if the virtual environment was activated successfully
if %errorlevel% neq 0 (
echo Failed to activate virtual environment. Please ensure the environment exists.
pause
exit /b 1
)
REM Run the Python script using the Python interpreter from the virtual environment
echo Starting Uta Yuki...
python "%~dp0main.py"
REM Check if the Python script ran successfully
if %errorlevel% neq 0 (
echo Failed to run Python script. Check the logs for more details.
pause
exit /b 1
)
REM Pause to keep the window open
pause