Skip to content

Commit aba62ad

Browse files
feat(python): add support for py launcher
resolves #4923
1 parent fd8fe94 commit aba62ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/segments/python.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ func (p *Python) Init(props properties.Properties, env platform.Environment) {
5151
args: []string{"--version"},
5252
regex: `(?:Python (?P<version>((?P<major>[0-9]+).(?P<minor>[0-9]+).(?P<patch>[0-9]+))))`,
5353
},
54+
{
55+
executable: "py",
56+
args: []string{"--version"},
57+
regex: `(?:Python (?P<version>((?P<major>[0-9]+).(?P<minor>[0-9]+).(?P<patch>[0-9]+))))`,
58+
},
5459
},
5560
versionURLTemplate: "https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}",
5661
displayMode: props.GetString(DisplayMode, DisplayModeEnvironment),

0 commit comments

Comments
 (0)