7066: Reapply from trunk sdn version reporting

Merged from
	commit dbae40dd1edad52023b828d5eef0fe7eb3684fb6
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	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
This commit is contained in:
Vassilii Khachaturov 2013-09-14 23:24:20 +00:00
parent 1cba16a406
commit 95c805f325

View File

@ -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)