fixed run.bat and created config&run.bat for easy configuration.
This commit is contained in:
20
config&run.bat
Normal file
20
config&run.bat
Normal file
@@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
REM run.bat
|
||||
REM Activates the virtual environment and runs your main Python script.
|
||||
|
||||
REM Activate the virtual environment
|
||||
call venv\Scripts\activate.bat
|
||||
|
||||
REM run the config script
|
||||
python src\config.py
|
||||
REM Check if the activation was successful
|
||||
if errorlevel 1 (
|
||||
echo Failed to activate the virtual environment.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Run your main Python script (replace main.py with your script name if different)
|
||||
start "OopsWrongLang" /B pythonw src\main.pyw
|
||||
echo application is running in the background. you can close this window.
|
||||
pause
|
||||
Reference in New Issue
Block a user