#!/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