Add script to run in venv
This commit is contained in:
parent
551e69f412
commit
85c22cca3e
1 changed files with 9 additions and 0 deletions
9
skeleton/run.sh
Executable file
9
skeleton/run.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
if [ ! -d "$(dirname "${0}")/.venv" ]; then
|
||||
python -m venv "$(dirname "${0}")/.venv"
|
||||
fi
|
||||
# shellcheck disable=1091
|
||||
source "$(dirname "${0}")/.venv/bin/activate"
|
||||
pip install -r "$(dirname "${0}")/requirements.txt"
|
||||
pip install "$(dirname "${0}")/"
|
||||
__project_codename__.py "${@}"
|
Loading…
Reference in a new issue