File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 1010#
1111# */5 * * * * /home/scn/github/netbot/threader_job.sh | /usr/bin/logger -t threader
1212
13+ # Add the uv directory to PATH
14+ export PATH=$HOME /.local/bin:$PATH
15+
1316project_dir=" $( cd -P -- " $( dirname -- " $0 " ) " && pwd -P) "
1417cd " $project_dir " || exit 1
1518
16- # VENV=.venv
17- # PYTHON="$project_dir/$VENV/bin/python3"
18- # PYTHON_VERSION="python3.11"
19-
20- # make sure venv is installed
21- # if [ ! -x "$PYTHON" ]; then
22- # if command -v $PYTHON_VERSION &> /dev/null
23- # then
24- # echo Building $VENV with $($PYTHON_VERSION --version)
25- # $PYTHON_VERSION -m venv $VENV
26- # $PYTHON -m pip install --upgrade pip
27- # $PYTHON -m pip install -r requirements.txt
28- # else
29- # echo "$PYTHON_VERSION could not be found"
30- # exit 1
31- # fi
32- # fi
3319
34- # run the threader
20+ # run the threader with uv
3521uv sync
3622uv run -m threader.threader
You can’t perform that action at this time.
0 commit comments