[shutnik] improved os info under posix. Fixes #4506
This commit is contained in:
parent
27dfe571c4
commit
0b93973c46
|
@ -795,7 +795,7 @@ def get_os_info():
|
||||||
return 'Windows'
|
return 'Windows'
|
||||||
elif os.name == 'posix':
|
elif os.name == 'posix':
|
||||||
executable = 'lsb_release'
|
executable = 'lsb_release'
|
||||||
params = ' --id --codename --release --short'
|
params = ' --description --codename --release --short'
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue