diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index 2b139ddf0..e96363b9b 100644 --- a/plugins/python/python.plugin.zsh +++ b/plugins/python/python.plugin.zsh @@ -29,7 +29,7 @@ function pyuserpaths() { # Get minor release version. # The patch version is variable length, truncate it. - version=${(M)${"$($python -V 2>&1)":7}#[^.]##.[^.]##} + version=${(M)${"$($python -V 2>&1)":7}##[^.]##.[^.]##} # Add version specific path, if: # - it exists in the filesystem