Commit fb841c52 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Deactivate any currently active venvs in pydevenv*

parent 72a63f49
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ _venv_make_func() {
_venv_enable() {
	local venv=.venv${1}-${2}
	[[ -d "$venv" ]] || virtualenv "$venv" -p$(which ${3})
	[[ -v VIRTUAL_ENV ]] && has deactivate is function && deactivate
	source "$venv/bin/activate"
}