We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab7252 commit 0ff5c33Copy full SHA for 0ff5c33
src/findpython/__main__.py
@@ -37,6 +37,7 @@ def cli(argv: list[str] | None = None) -> int:
37
parser.add_argument(
38
"-a", "--all", action="store_true", help="Show all matching python versions"
39
)
40
+ parser.add_argument("--path", action="store_true", help="Show the path of the python")
41
42
"--resolve-symlink", action="store_true", help="Resolve all symlinks"
43
@@ -79,7 +80,7 @@ def cli(argv: list[str] | None = None) -> int:
79
80
python_versions = [python_versions]
81
print("Found matching python versions:", file=sys.stderr)
82
for python_version in python_versions:
- print(python_version)
83
+ print(python_version.executable if args.path else python_version)
84
return 0
85
86
0 commit comments