Commit 1e0ab126 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix broken venv test for pydevenv* aliases

parent a897aec3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ _venv_make_func() {
_venv_enable() {
	local venv=.venv${1}-${2} python=$3
	[[ -f "$venv/bin/activate" ]] || $python -m venv "$venv"
	[[ -x "$venv/bin/$python" ]] || $python -m venv --upgrade "$venv"
	[[ -x "$venv/bin/$(basename $python)" ]] || $python -m venv --upgrade "$venv"
	[[ -v VIRTUAL_ENV ]] && has deactivate is function && deactivate
	source "$venv/bin/activate"
	export CONTEXT_PY=$1