From 3d02d6b4a3cfbf32e466eec0681162415e26a7fb Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Tue, 10 Dec 2013 18:04:06 +0200 Subject: [PATCH] 7288: report PIL version with --version help debugging the bug with wrong image aspect ration in ODF --- src/gramps.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gramps.py b/src/gramps.py index da9444104..763b03faf 100644 --- a/src/gramps.py +++ b/src/gramps.py @@ -279,6 +279,16 @@ def show_settings(): except ImportError: pyexiv2_str = 'not found' + try: + import PIL.Image + try: + pil_str = PIL.Image.VERSION + except :# any failure to 'get' the version + pil_str = 'unknown version' + + except ImportError: + pil_str = 'not found' + import config usebsddb3 = config.get('preferences.use-bsddb3') try: @@ -345,6 +355,7 @@ def show_settings(): print ' cairo : %s' % cairover_str print ' osmgpsmap : %s' % osmgpsmap_str print ' pyexiv2 : %s' % pyexiv2_str + print ' PIL : %s' % pil_str print ' o.s. : %s' % operating_system if kernel: print ' kernel : %s' % kernel