Skip to content

Commit

Permalink
Only notify users about Venv Activation on setup (#2109)
Browse files Browse the repository at this point in the history
## Summary

Only prompt the user about activating their Python Virtual Env on setup,
and not on every shell activation

## How was it tested?

Build + test on python
  • Loading branch information
Lagoja authored May 31, 2024
1 parent 4bd4b42 commit 7f349b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pip/venvShellHook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
if ! [ -d "$VENV_DIR" ]; then
echo "Creating new venv environment in path: '${VENV_DIR}'"
python3 -m venv "$VENV_DIR"
echo "You can activate the virtual environment by running '. \$VENV_DIR/bin/activate' (for fish shell, replace '.' with 'source')" >&2
fi

echo "You can activate the virtual environment by running '. \$VENV_DIR/bin/activate' (for fish shell, replace '.' with 'source')" >&2

0 comments on commit 7f349b7

Please sign in to comment.