mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-101283: Fix use of unbound variable (GH-101712)
This commit is contained in:
parent
23751ed826
commit
20cf32e761
1 changed files with 2 additions and 0 deletions
|
|
@ -1494,6 +1494,8 @@ class Popen:
|
|||
raise FileNotFoundError('shell not found: neither %ComSpec% nor %SystemRoot% is set')
|
||||
if os.path.isabs(comspec):
|
||||
executable = comspec
|
||||
else:
|
||||
comspec = executable
|
||||
|
||||
args = '{} /c "{}"'.format (comspec, args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue