diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/util/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py index b85ec963e2..f7dc728e7c 100644 --- a/lib/spack/spack/util/environment.py +++ b/lib/spack/spack/util/environment.py @@ -919,7 +919,7 @@ def environment_after_sourcing_files(*files, **kwargs): source_file = ' '.join(source_file) dump_cmd = 'import os, json; print(json.dumps(dict(os.environ)))' - dump_environment = 'python -c "{0}"'.format(dump_cmd) + dump_environment = sys.executable + ' -c "{0}"'.format(dump_cmd) # Try to source the file source_file_arguments = ' '.join([ |