Changed so that py_platform.dist() grabs the major version number.
This commit is contained in:
parent
6d73c86209
commit
9bfc83ac5c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue