Skip to content

Commit 835eaad

Browse files
committed
run.sh updated
1 parent 875311a commit 835eaad

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

run.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/bash
22
set -e
3-
script_dir="$( cd "$( dirname "$0" )" && pwd )"
43

5-
if [[ ! -d "$script_dir/venv" ]]; then
6-
virtualenv "$script_dir/venv"
7-
"$script_dir/venv/bin/pip" --require-virtualenv install --upgrade pip build
4+
script_dir="$(cd "$(dirname "$0")" && pwd)"
5+
venv_dir="$script_dir/venv"
6+
7+
if [[ ! -d "$venv_dir" ]]; then
8+
python -m venv "$venv_dir"
9+
"$venv_dir/bin/python" -m pip --require-virtualenv install --upgrade pip build
810
fi
911

10-
"$script_dir/venv/bin/python" "$@"
12+
"$venv_dir/bin/python" "$@"

0 commit comments

Comments
 (0)