Get the version of linux this system is running
If it's not linux, return None
Source code in chmpy/util/exe.py
| def linux_version():
"""Get the version of linux this system is running
If it's not linux, return None
"""
s = platform.platform()
if not s.startswith("Linux"):
return None
version_string = s.split("-")[1]
return version_string
|