1#!/usr/bin/python 2# SPDX-License-Identifier: CC0-1.0 3 4import platform 5os_release = platform.freedesktop_os_release() 6 7pretty_name = os_release.get('PRETTY_NAME', 'Linux') 8print(f'Running on {pretty_name!r}') 9 10if 'fedora' in [os_release.get('ID', 'linux'), 11 *os_release.get('ID_LIKE', '').split()]: 12 print('Looks like Fedora!') 13