5
"""Return the current OS platform.
7
For example: if current os platform is Ubuntu then a string "ubuntu"
8
will be returned (which is the name of the module).
9
This string is used to decide which platform module should be imported.
11
tuple_platform = platform.linux_distribution()
12
current_platform = tuple_platform[0]
13
if "Ubuntu" in current_platform:
15
elif "CentOS" in current_platform:
18
raise RuntimeError("This module is not supported on {}."
19
.format(current_platform))