This commit is contained in:
mike
2026-06-18 23:26:30 +02:00
parent 1dead1c666
commit 045b9b6458
21 changed files with 1477 additions and 979 deletions

View File

@@ -1,13 +1,9 @@
#!/bin/bash
# Launch the folder watcher service.
set -e
API_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASE="$( cd "$API_DIR/.." && pwd )"
# Try to activate venv if it exists, otherwise use system python
if [ -d "$BASE/venv" ]; then
source "$BASE/venv/bin/activate"
fi
# env.sh resolves API_DIR/VENV (and keeps the venv off NTFS).
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env.sh"
source "$VENV/bin/activate"
cd "$API_DIR"
exec python3 watcher.py