aboutsummaryrefslogtreecommitdiff
path: root/tools/manage
blob: dc7f64b6444646480746b2643340117626689e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -e

python3.11 --version > /dev/null 2>&1 || (
    echo Error: failed to run Python with python3.11 --version.
    exit 1
)

script_dir=$(dirname "$0")
project_dir=$(realpath "$script_dir/..")

cd "$project_dir"

export PYTHONPATH="$project_dir/tools/cru-py:$PYTHONPATH"
python3.11 -m cru.service --project-dir "$project_dir" "$@"