Add sqlite info to error report assistant

This commit is contained in:
Doug Blank 2016-05-07 09:50:43 -04:00
parent 3e827c230e
commit e2ae70a2dd

View File

@ -37,6 +37,14 @@ try:
except: except:
BSDDB_STR = 'not found' 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 # Gramps modules
@ -163,6 +171,7 @@ class ErrorReportAssistant(Gtk.Assistant):
return "Python version: %s \n"\ return "Python version: %s \n"\
"BSDDB version: %s \n"\ "BSDDB version: %s \n"\
"sqlite version: %s (%s) \n"\
"Gramps version: %s \n"\ "Gramps version: %s \n"\
"LANG: %s\n"\ "LANG: %s\n"\
"OS: %s\n"\ "OS: %s\n"\
@ -172,6 +181,8 @@ class ErrorReportAssistant(Gtk.Assistant):
"cairo version : %s"\ "cairo version : %s"\
% (str(sys.version).replace('\n',''), % (str(sys.version).replace('\n',''),
BSDDB_STR, BSDDB_STR,
sqlite3_version_str,
sqlite3_py_version_str,
str(VERSION), str(VERSION),
get_env_var('LANG',''), get_env_var('LANG',''),
operatingsystem, operatingsystem,