From e2ae70a2ddcd5f1e90f5d40f163ee2dc8aeedc39 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 7 May 2016 09:50:43 -0400 Subject: [PATCH] Add sqlite info to error report assistant --- gramps/gui/logger/_errorreportassistant.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gramps/gui/logger/_errorreportassistant.py b/gramps/gui/logger/_errorreportassistant.py index 9f431ede7..576c9f15c 100644 --- a/gramps/gui/logger/_errorreportassistant.py +++ b/gramps/gui/logger/_errorreportassistant.py @@ -37,6 +37,14 @@ try: except: BSDDB_STR = 'not found' +try: + import sqlite3 + sqlite3_py_version_str = sqlite3.version + sqlite3_version_str = sqlite3.sqlite_version +except: + sqlite3_version_str = 'not found' + sqlite3_py_version_str = 'not found' + #------------------------------------------------------------------------- # # Gramps modules @@ -163,6 +171,7 @@ class ErrorReportAssistant(Gtk.Assistant): return "Python version: %s \n"\ "BSDDB version: %s \n"\ + "sqlite version: %s (%s) \n"\ "Gramps version: %s \n"\ "LANG: %s\n"\ "OS: %s\n"\ @@ -172,6 +181,8 @@ class ErrorReportAssistant(Gtk.Assistant): "cairo version : %s"\ % (str(sys.version).replace('\n',''), BSDDB_STR, + sqlite3_version_str, + sqlite3_py_version_str, str(VERSION), get_env_var('LANG',''), operatingsystem,