Closed pbrkr closed 6 months ago
Note that pyenv supports comments in this .python-version
: https://github.com/pyenv/pyenv/blob/v2.4.0/libexec/pyenv-version-file-read#L30
while read -n 1024 -r version _ || [[ $version ]]; do
if [[ -z "$version" || "$version" == \#* ]]; then
# Skip empty lines and comments
continue
...
@charliermarsh Many thanks for the quick fix here!
No prob!
Steps to Reproduce
Run
rye init
Modify
.python-version
to start with a comment, e.g.Run
python3 --version
Expected Result
Actual Result
Version Info
Stacktrace
No response