summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/bootstrap.py b/lib/spack/spack/bootstrap.py
index 66cb2b49cf..09d9c6e3a8 100644
--- a/lib/spack/spack/bootstrap.py
+++ b/lib/spack/spack/bootstrap.py
@@ -267,7 +267,7 @@ def spack_python_interpreter():
which Spack is currently running as the only Python external spec
available.
"""
- python_prefix = os.path.dirname(os.path.dirname(sys.executable))
+ python_prefix = sys.exec_prefix
external_python = spec_for_current_python()
entry = {