未验证 提交 2f7d173b 编写于 作者: F Frost Ming

Strip spaces in user input when prompting for the python version to use

Fix #252
上级 cbc30d83
Strip spaces in user input when prompting for the python version to use.
......@@ -414,6 +414,7 @@ def do_use(project: Project, python: str, first: bool = False) -> None:
"""
import pythonfinder
python = python.strip()
if python and not all(c.isdigit() for c in python.split(".")):
if Path(python).exists():
python_path = find_python_in_path(python)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册