forked from hydrusnetwork/hydrus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhydrus_client.bat
More file actions
38 lines (21 loc) · 781 Bytes
/
hydrus_client.bat
File metadata and controls
38 lines (21 loc) · 781 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
34
35
36
37
38
@ECHO off
pushd "%~dp0"
IF NOT EXIST "venv\" (
SET /P gumpf="You need to set up a venv! Check the running from source help for more info!"
popd
EXIT /B 1
)
CALL venv\Scripts\activate.bat
IF ERRORLEVEL 1 (
SET /P gumpf="The venv failed to activate, stopping now!"
popd
EXIT /B 1
)
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.
REM Just tack new params on like this:
REM start "" "pythonw" hydrus_client.pyw -d="E:\hydrus"
start "" "pythonw" hydrus_client.pyw
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
CALL venv\Scripts\deactivate.bat
popd