add ICU/PyICU to "gramps -v"
svn: r21530
This commit is contained in:
parent
8ea29ede81
commit
2528da2f2d
@ -254,6 +254,19 @@ def show_settings():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
gexiv2_str = 'not found'
|
gexiv2_str = 'not found'
|
||||||
|
|
||||||
|
try:
|
||||||
|
import PyICU
|
||||||
|
try:
|
||||||
|
pyicu_str = PyICU.VERSION
|
||||||
|
icu_str = PyICU.ICU_VERSION
|
||||||
|
except: # any failure to 'get' the version
|
||||||
|
pyicu_str = 'unknown version'
|
||||||
|
icu_str = 'unknown version'
|
||||||
|
|
||||||
|
except ImportError:
|
||||||
|
pyicu_str = 'not found'
|
||||||
|
icu_str = 'not found'
|
||||||
|
|
||||||
from .gen.config import config
|
from .gen.config import config
|
||||||
usebsddb3 = config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3
|
usebsddb3 = config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3
|
||||||
try:
|
try:
|
||||||
@ -326,6 +339,8 @@ def show_settings():
|
|||||||
print (' pycairo : %s' % pycairover_str)
|
print (' pycairo : %s' % pycairover_str)
|
||||||
print (' osmgpsmap : %s' % osmgpsmap_str)
|
print (' osmgpsmap : %s' % osmgpsmap_str)
|
||||||
print (' GExiv2 : %s' % gexiv2_str)
|
print (' GExiv2 : %s' % gexiv2_str)
|
||||||
|
print (' ICU : %s' % icu_str)
|
||||||
|
print (' PyICU : %s' % pyicu_str)
|
||||||
print (' o.s. : %s' % sys.platform)
|
print (' o.s. : %s' % sys.platform)
|
||||||
if kernel:
|
if kernel:
|
||||||
print (' kernel : %s' % kernel)
|
print (' kernel : %s' % kernel)
|
||||||
|
Loading…
Reference in New Issue
Block a user