2 # SPDX-License-Identifier: MIT-0
5 os_release
= platform
.freedesktop_os_release()
7 pretty_name
= os_release
.get('PRETTY_NAME', 'Linux')
8 print(f
'Running on {pretty_name!r}')
10 if 'fedora' in [os_release
.get('ID', 'linux'),
11 *os_release
.get('ID_LIKE', '').split()]:
12 print('Looks like Fedora!')