Skip to content

Commit

Permalink
update: ocd name order
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Sep 18, 2023
1 parent f69f547 commit a8ff001
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/library/python.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/sh
# shellcheck disable=SC1091

check_venv(){
# activate python venv
[ -d venv ] || setup_venv
. venv/bin/activate
[ -e requirements.txt ] && pip install -q -r requirements.txt
}

setup_venv(){
python3 -m venv venv
. venv/bin/activate
pip install -q -U pip

check_venv || usage
}

check_venv(){
# activate python venv
[ -d venv ] || setup_venv
. venv/bin/activate
[ -e requirements.txt ] && pip install -q -r requirements.txt
}

0 comments on commit a8ff001

Please sign in to comment.