Commit 88ece615 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Adjust pydevenv* patterns to pick up Python >=3

parent 10992c1e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@ _venv_make_func() {
	local pattern python version
	local platform=`uname -s | tr A-Z a-z`
	case $CURRENT_SHELL in
		zsh) pattern='python[0-9]^*-*' ;;
		*) pattern='python[0-9]!(*-*)' ;;
		zsh) pattern='python<3->(.<->)#' ;;
		*) pattern='python@([3-9]|[0-9]+([0-9]))?(.+([0-9]))' ;;
	esac
	for python in $(_venv_glob_path "$pattern"|basename_filter|sort -u); do
		version=$(tr -d . <<<"${python#python}")