Add current git HEAD info to support request
This commit is contained in:
parent
5ae676f2ad
commit
d0b1cbfe1f
|
@ -1,5 +1,6 @@
|
||||||
import ctypes
|
import ctypes
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
from os import path
|
||||||
import ssl
|
import ssl
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
@ -86,6 +87,15 @@ def createSupportMessage(myapp):
|
||||||
myapp.ui.lineEditTo.setText(SUPPORT_ADDRESS)
|
myapp.ui.lineEditTo.setText(SUPPORT_ADDRESS)
|
||||||
|
|
||||||
version = softwareVersion
|
version = softwareVersion
|
||||||
|
githeadfile = path.join(paths.codePath(), '..', '.git', 'ORIG_HEAD')
|
||||||
|
print "GITHEADFILE %s" % (githeadfile)
|
||||||
|
if (path.isfile(githeadfile)):
|
||||||
|
try:
|
||||||
|
with open(githeadfile, 'rt') as githead:
|
||||||
|
version += " GIT " + githead.readline().rstrip()
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
|
|
||||||
os = sys.platform
|
os = sys.platform
|
||||||
if os == "win32":
|
if os == "win32":
|
||||||
windowsversion = sys.getwindowsversion()
|
windowsversion = sys.getwindowsversion()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user