From 8d3272f82dba4959ac3da068720d9befbf3ca044 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sun, 7 Mar 2021 13:37:26 -0800 Subject: spack python: add --path option (#22006) This adds a `--path` option to `spack python` that shows the `python` interpreter that Spack is using. e.g.: ```console $ spack python --path /Users/gamblin2/src/spack/var/spack/environments/default/.spack-env/view/bin/python ``` This is useful for debugging, and we can ask users to run it to understand what python Spack is picking up via preferences in `bin/spack` and via the `SPACK_PYTHON` environment variable introduced in #21222. --- share/spack/spack-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 4653a753b7..62645bd6ac 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -1385,7 +1385,7 @@ _spack_pydoc() { _spack_python() { if $list_options then - SPACK_COMPREPLY="-h --help -V --version -c -i -m" + SPACK_COMPREPLY="-h --help -V --version -c -i -m --path" else SPACK_COMPREPLY="" fi -- cgit v1.2.3-60-g2f50