2022-11-02 04:17:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-04-12 20:34:43 +00:00
|
|
|
pushd "$(dirname "$0")" || exit 1
|
2022-11-23 21:01:41 +00:00
|
|
|
|
2022-11-02 04:17:15 +00:00
|
|
|
if [ ! -d "venv" ]; then
|
|
|
|
echo "You need to set up a venv! Check the running from source help for more info!"
|
2023-04-12 20:34:43 +00:00
|
|
|
popd || exit 1
|
2022-11-02 04:17:15 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-04-12 20:34:43 +00:00
|
|
|
if ! source venv/bin/activate; then
|
2022-11-16 21:34:30 +00:00
|
|
|
echo "The venv failed to activate, stopping now!"
|
2023-04-12 20:34:43 +00:00
|
|
|
popd || exit 1
|
2022-11-16 21:34:30 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-11-02 04:17:15 +00:00
|
|
|
# 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:
|
2023-05-09 21:56:03 +00:00
|
|
|
# python hydrus_client.py -d="/path/to/hydrus/db"
|
2022-11-02 04:17:15 +00:00
|
|
|
|
2023-05-09 21:56:03 +00:00
|
|
|
python hydrus_client.py
|
2022-11-02 04:17:15 +00:00
|
|
|
|
|
|
|
deactivate
|
2022-11-23 21:01:41 +00:00
|
|
|
|
2023-04-12 20:34:43 +00:00
|
|
|
popd || exit
|