Skip to content
Snippets Groups Projects
Unverified Commit 37eac1a2 authored by Sajid Ali's avatar Sajid Ali Committed by Todd Gamblin
Browse files

use `sys.executable` instead of `python` in `_source_single_file` (#14252)

parent 63915613
No related branches found
No related tags found
No related merge requests found
...@@ -919,7 +919,7 @@ def _source_single_file(file_and_args, environment): ...@@ -919,7 +919,7 @@ def _source_single_file(file_and_args, environment):
source_file = ' '.join(source_file) source_file = ' '.join(source_file)
dump_cmd = 'import os, json; print(json.dumps(dict(os.environ)))' 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 # Try to source the file
source_file_arguments = ' '.join([ source_file_arguments = ' '.join([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment