hydrus/client.command

22 lines
501 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ ! -d "venv" ]; then
echo "You need to set up a venv! Check the running from source help for more info!"
exit 1
fi
source venv/bin/activate
2022-11-16 21:34:30 +00:00
if [ $? -ne 0 ]; then
echo "The venv failed to activate, stopping now!"
exit 1
fi
# You can copy this file to 'client-user.sh' and add in your own launch parameters here if you like, and a git pull won't overwrite the file.
# Just tack new params on like this:
# python client.py -d="/path/to/hydrus/db"
python client.py
deactivate