use sys.executable
instead of python
in _source_single_file
(#14252)
This commit is contained in:
parent
639156130b
commit
37eac1a226
1 changed files with 1 additions and 1 deletions
|
@ -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([
|
||||||
|
|
Loading…
Reference in a new issue