[shutnik] improved os info under posix. Fixes #4506

This commit is contained in:
Yann Leboulanger 2008-11-20 14:37:38 +00:00
parent 27dfe571c4
commit 0b93973c46
1 changed files with 1 additions and 1 deletions

View File

@ -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