Operating system detection
This commit is contained in:
parent
3db67530a9
commit
5caced3c6b
|
@ -570,7 +570,8 @@ class MyForm(QtGui.QMainWindow):
|
||||||
|
|
||||||
# is the operating system Ubuntu?
|
# is the operating system Ubuntu?
|
||||||
def isUbuntu(self):
|
def isUbuntu(self):
|
||||||
if "Ubuntu" in str(os.uname()):
|
for entry in os.uname():
|
||||||
|
if "Ubuntu" in entry:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user