1import subprocess
2
3output = subprocess.check_output("cat /etc/os-release", shell=True)
4output = output.decode("utf-8")
5print("Version info: ",output)
1Version info: NAME="Arch Linux"
2PRETTY_NAME="Arch Linux"
3ID=arch
4BUILD_ID=rolling
5ANSI_COLOR="38;2;23;147;209"
6HOME_URL="https://www.archlinux.org/"
7DOCUMENTATION_URL="https://wiki.archlinux.org/"
8SUPPORT_URL="https://bbs.archlinux.org/"
9BUG_REPORT_URL="https://bugs.archlinux.org/"
10LOGO=archlinux