feat(python): add support for py launcher

resolves #4923
This commit is contained in:
Jan De Dobbeleer 2024-05-13 08:31:38 +02:00 committed by Jan De Dobbeleer
parent fd8fe94cff
commit 738048bc9f

View file

@ -51,6 +51,11 @@ func (p *Python) Init(props properties.Properties, env platform.Environment) {
args: []string{"--version"},
regex: `(?:Python (?P<version>((?P<major>[0-9]+).(?P<minor>[0-9]+).(?P<patch>[0-9]+))))`,
},
{
executable: "py",
args: []string{"--version"},
regex: `(?:Python (?P<version>((?P<major>[0-9]+).(?P<minor>[0-9]+).(?P<patch>[0-9]+))))`,
},
},
versionURLTemplate: "https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}",
displayMode: props.GetString(DisplayMode, DisplayModeEnvironment),