fix call to Popen()
This commit is contained in:
parent
d26080a3dd
commit
1fd13ae4fa
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ def get_os_info():
|
||||||
full_path_to_executable = is_in_path(executable, return_abs_path = True)
|
full_path_to_executable = is_in_path(executable, return_abs_path = True)
|
||||||
if full_path_to_executable:
|
if full_path_to_executable:
|
||||||
command = executable + params
|
command = executable + params
|
||||||
p = Popen([command], shell=True, stdin=subprocess.PIPE,
|
p = subprocess.Popen([command], shell=True, stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE, close_fds=True)
|
stdout=subprocess.PIPE, close_fds=True)
|
||||||
p.wait()
|
p.wait()
|
||||||
output = temp_failure_retry(p.stdout.readline).strip()
|
output = temp_failure_retry(p.stdout.readline).strip()
|
||||||
|
|
Loading…
Add table
Reference in a new issue