feat: add known Python extensions/folder

This commit is contained in:
Jan De Dobbeleer 2021-01-15 19:41:09 +01:00
parent 47fc0088d1
commit d1be7ac1d2

View file

@ -29,7 +29,7 @@ func (p *python) init(props *properties, env environmentInfo) {
props: props,
commands: []string{"python", "python3"},
versionParam: "--version",
extensions: []string{"*.py", "*.ipynb"},
extensions: []string{"*.py", "*.ipynb", "pyproject.toml", "venv.bak", "venv", ".venv"},
versionRegex: `Python (?P<version>[0-9]+.[0-9]+.[0-9]+)`,
loadContext: p.loadContext,
inContext: p.inContext,