python.path
in ~/.pdm/config.toml
appears to never be used
#842
Labels
⭐ enhancement
Improvements for existing features
Is your feature request related to a problem? Please describe.
I was trying to set a Python version for PDM to prioritize instead of the default sorting algorithm. I thought
pdm config python.path /path/to/python
looked promising, but it didn't work.On closer inspection, it looks like
python.path
in~/.pdm/config.toml
will never be used for anything, because:.pdm.toml
, it gets created first and always contains at leastpython.path
Being able to set a value that's never used for anything is confusing for users.
Describe the solution you'd like
I can see different solutions:
python.path
can be set in the global config, it has no effect.python.path
in the global config.python.path
exists in~/.pdm/config.toml
, bump it to the first place in the list of Python suggestions.The text was updated successfully, but these errors were encountered: