2022-10-19 20:44:13 +00:00
@ ECHO off
2022-11-23 21:01:41 +00:00
pushd " %~dp0 "
2022-11-03 03:09:07 +00:00
IF NOT EXIST " venv\ " (
2023-08-30 16:25:24 +00:00
SET /P gumpf = " You need to set up a venv! Check the running from source help for more info! "
2022-11-23 21:01:41 +00:00
popd
2022-11-03 03:09:07 +00:00
EXIT /B 1
)
2022-10-19 20:44:13 +00:00
CALL venv\Scripts\activate.bat
2022-11-16 21:34:30 +00:00
IF ERRORLEVEL 1 (
2023-08-30 16:25:24 +00:00
SET /P gumpf = " The venv failed to activate, stopping now! "
2022-11-23 21:01:41 +00:00
popd
2022-11-16 21:34:30 +00:00
EXIT /B 1
)
2024-06-19 20:59:30 +00:00
REM You can copy this file to 'hydrus_client-user.bat' and add in your own launch parameters here if you like, and a git pull won't overwrite the file.
2022-10-19 20:44:13 +00:00
REM Just tack new params on like this:
2023-05-09 21:56:03 +00:00
REM start "" "pythonw" hydrus_client.pyw -d="E:\hydrus"
2022-10-19 20:44:13 +00:00
2023-05-09 21:56:03 +00:00
start " " " pythonw " hydrus_client.pyw
2022-10-19 20:44:13 +00:00
2023-05-09 21:56:03 +00:00
REM Here is an alternate line that will keep the console open and show live log updates. Useful for boot/live debugging:
REM python hydrus_client.py
2022-11-23 21:01:41 +00:00
CALL venv\Scripts\deactivate.bat
popd