From d0b1cbfe1ff1a426e3407e1129fa842762cda22f Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 13 Jan 2017 12:29:14 +0100 Subject: [PATCH] Add current git HEAD info to support request --- src/bitmessageqt/support.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bitmessageqt/support.py b/src/bitmessageqt/support.py index ee573f05..a1c5977a 100644 --- a/src/bitmessageqt/support.py +++ b/src/bitmessageqt/support.py @@ -1,5 +1,6 @@ import ctypes from PyQt4 import QtCore, QtGui +from os import path import ssl import sys import time @@ -86,6 +87,15 @@ def createSupportMessage(myapp): myapp.ui.lineEditTo.setText(SUPPORT_ADDRESS) 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 if os == "win32": windowsversion = sys.getwindowsversion()