Changed so that py_platform.dist() grabs the major version number.

This commit is contained in:
Mario Melara 2016-04-04 15:36:10 -07:00
parent 6d73c86209
commit 9bfc83ac5c

View file

@ -10,6 +10,6 @@ class LinuxDistro(OperatingSystem):
""" """
def __init__(self): def __init__(self):
name = py_platform.dist()[0] name = py_platform.dist()[0]
version = py_platform.dist()[1] version = py_platform.dist()[1].split(".")[0] # Grabs major version from tuple
super(LinuxDistro, self).__init__(name, version) super(LinuxDistro, self).__init__(name, version)