revert bad commit from [8817]. fixes #3443
This commit is contained in:
parent
6667eb5e29
commit
df13453388
|
@ -722,10 +722,11 @@ 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,
|
child_stdin, child_stdout = os.popen2(command)
|
||||||
stdout=subprocess.PIPE, close_fds=True)
|
output = temp_failure_retry(child_stdout.readline).strip()
|
||||||
p.wait()
|
child_stdout.close()
|
||||||
output = temp_failure_retry(p.stdout.readline).strip()
|
child_stdin.close()
|
||||||
|
os.wait()
|
||||||
# some distros put n/a in places, so remove those
|
# some distros put n/a in places, so remove those
|
||||||
output = output.replace('n/a', '').replace('N/A', '')
|
output = output.replace('n/a', '').replace('N/A', '')
|
||||||
return output
|
return output
|
||||||
|
|
Loading…
Reference in New Issue