Skip to content

Commit

Permalink
vwip
Browse files Browse the repository at this point in the history
  • Loading branch information
amirouche committed Oct 4, 2023
1 parent e008fd8 commit ab9fe2e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions venv
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ if [ "$PYTHON" = "" ]; then
fi;

if test -d .venv; then
if [ -z "$MYVENV" ]; then
if [[ -z "$MYVENV" ]]; then
export MYVENV=1
source .venv/bin/activate
if [ -z "$@" ]; then
if [[ -z "$@" ]]; then
if test -f .venv/bin/rc.sh; then
bash --rcfile .venv/bin/rc.sh
else
Expand All @@ -37,7 +37,6 @@ if test -d .venv; then
fi
else
echo "You are already in a virtual environment!"
exec "$@"
fi
else
$PYTHON -m venv --prompt="$(basename $(pwd))" .venv
Expand Down

0 comments on commit ab9fe2e

Please sign in to comment.