Skip to content

Commit c86498d

Browse files
author
Paul Philion
committed
adding path to uv command
1 parent 7ec35cc commit c86498d

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

threader_job.sh

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,13 @@
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+
1316
project_dir="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
1417
cd "$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
3521
uv sync
3622
uv run -m threader.threader

0 commit comments

Comments
 (0)