Commit 8ee7c72a authored by Taddeüs Kroes's avatar Taddeüs Kroes

Updated OS name

parent 8d7d062c
...@@ -12,7 +12,13 @@ from wspy import websocket, Frame, OPCODE_TEXT, WebkitDeflateFrame ...@@ -12,7 +12,13 @@ from wspy import websocket, Frame, OPCODE_TEXT, WebkitDeflateFrame
def osname(): def osname():
if platform.system() == 'Linux': if platform.system() == 'Linux':
return 'Linux %s %s (%s)' % platform.dist() distro, version, codename % platform.dist()
name = 'Linux - %s %s' % (distro, version)
if codename:
name += ' (%s)' % codename
return name
#return '%s %s' % (platform.system(), platform.release()) #return '%s %s' % (platform.system(), platform.release())
return platform.platform() return platform.platform()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment