Fix contact support unix detection
This commit is contained in:
parent
4049662a3a
commit
d0b9d75ce1
|
@ -1,4 +1,5 @@
|
||||||
import ctypes
|
import ctypes
|
||||||
|
from os import uname
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ def createSupportMessage(myapp):
|
||||||
windowsversion = sys.getwindowsversion()
|
windowsversion = sys.getwindowsversion()
|
||||||
os = "Windows " + str(windowsversion[0]) + "." + str(windowsversion[1])
|
os = "Windows " + str(windowsversion[0]) + "." + str(windowsversion[1])
|
||||||
else:
|
else:
|
||||||
unixversion = os.uname()
|
unixversion = uname()
|
||||||
os = unixversion[0] + " " + unixversion[2]
|
os = unixversion[0] + " " + unixversion[2]
|
||||||
architecture = "32" if ctypes.sizeof(ctypes.c_voidp) == 4 else "64"
|
architecture = "32" if ctypes.sizeof(ctypes.c_voidp) == 4 else "64"
|
||||||
frozen = "N/A"
|
frozen = "N/A"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user