From 95c805f32513dbb1b7fbfc0b48bac2e37cd58991 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sat, 14 Sep 2013 23:24:20 +0000 Subject: [PATCH] 7066: Reapply from trunk sdn version reporting Merged from commit dbae40dd1edad52023b828d5eef0fe7eb3684fb6 Author: Vassilii Khachaturov Date: Sat Sep 14 19:42:48 2013 +0000 7066: use sdn module from Calendar package on pypi Unfortunately, no package on ubuntu for sdn... Bug fixed on trunk, when sdn is present on the system. Verified that sdn roundtrip works. date_test now fails on 1789-13-4(French) recognized as invalid, as it probably should -- I guess this one is a test bug. git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@23127 4ae1f11a-8b86-4847-b8af-ab372f36d1fd M gramps/gen/lib/calendar.py --->M gramps/grampsapp.py svn: r23132 --- gramps/grampsapp.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index 34f72ab40..1255962bb 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -320,6 +320,12 @@ def show_settings(): except: gsversion_str = 'Ghostscript not in system PATH' + try: + import sdn + sdn_str = sdn.__version__ + except ImportError: + sdn_str = 'not found' + os_path = os.environ.get('PATH','not set') os_path = os_path.split(os.pathsep) @@ -342,6 +348,7 @@ def show_settings(): print (' GExiv2 : %s' % gexiv2_str) print (' ICU : %s' % icu_str) print (' PyICU : %s' % pyicu_str) + print (' sdn : %s' % sdn_str) print (' o.s. : %s' % sys.platform) if kernel: print (' kernel : %s' % kernel)