blob: ce866da40402dee810b8289fbef616a3f1dcfe45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash -eu
FIFO_PATH="/tmp/hestia-listening"
if [[ -p "$FIFO_PATH" ]]; then
echo >> "$FIFO_PATH"
else
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
MODULE_NAME=$(basename "$SCRIPT_DIR")
cd "$SCRIPT_DIR"
source venv/bin/activate
cd ..
python -m "$MODULE_NAME"
fi
|