diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index 3e7feb5df..8244e5c02 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -399,10 +399,11 @@ def show_settings(): print(' version : %s' % bsddb_str) print(' db version : %s' % bsddb_db_str) print(' location : %s' % bsddb_location_str) - print(' sqlite3 :') - print(' version : %s' % sqlite3_version_str) - print(' py version : %s' % sqlite3_py_version_str) - print(' location : %s' % sqlite3_location_str) + if __debug__: + print(' sqlite3 :') + print(' version : %s' % sqlite3_version_str) + print(' py version : %s' % sqlite3_py_version_str) + print(' location : %s' % sqlite3_location_str) print('') def run(): diff --git a/gramps/gui/aboutdialog.py b/gramps/gui/aboutdialog.py index 246d34bb7..c650087cf 100644 --- a/gramps/gui/aboutdialog.py +++ b/gramps/gui/aboutdialog.py @@ -132,19 +132,22 @@ class GrampsAboutDialog(Gtk.AboutDialog): operatingsystem = sys.platform distribution = " " + sqlite = '' + if __debug__: + sqlite = "sqlite: %s (%s)\n" % (sqlite3_version_str, + sqlite3_py_version_str) + return (("\n\n" + "GRAMPS: %s \n" + "Python: %s \n" + "BSDDB: %s \n" + - "sqlite: %s (%s)\n" + + sqlite + "LANG: %s\n" + "OS: %s\n" + "Distribution: %s") % (ellipses(str(VERSION)), ellipses(str(sys.version).replace('\n','')), BSDDB_STR, - sqlite3_version_str, - sqlite3_py_version_str, ellipses(get_env_var('LANG','')), ellipses(operatingsystem), ellipses(distribution)))