15 lines
308 B
Fish
Executable File
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
|