Ludwig Lehnert b32ae9fea7 refactoring
2025-02-16 08:40:29 +01:00

15 lines
308 B
Fish
Executable File

#!/bin/env fish
set DIR (cd (dirname (status -f)); and pwd)
if ! test -d "$DIR/venv"
/bin/env python3 -m venv "$DIR/venv"
. "$DIR/venv/bin/activate.fish"
/bin/env python3 -m pip install -r "$DIR/requirements.txt"
echo
else
. "$DIR/venv/bin/activate.fish"
end
/bin/env python3 "$DIR/dl.py" $argv