pdm use <python-spec>
breaks if there is a file/folder named <python-spec>
#1523
Labels
🐛 bug
Something isn't working
To force PDM to use the python from a virtualenv, we have our CI scripts run
pdm use python
. Normally this worked, until we had a repo with a folder named "python". We discovered this bug after adding debug logging to PDM. As a workaround we changed it topdm use .venv/bin/python
but still, this bug should be fixed.Steps to reproduce
.pdm.toml
if it exists, or otherwise rungit clean -xfd
)python
python -m venv .venv
pdm use --ignore-remembered python
Actual behavior
[NoPythonVersion]: No Python interpreter matching python is found.
Expected behavior
Using Python interpreter: .venv/bin/python (3.9)
Environment Information
The text was updated successfully, but these errors were encountered: