* src/gramps_main.py: if error and terminate, don't show family manager before exit

* src/gramps.py: terminate if wrong python version

2007-10-20  Benny Malengier  <benny.malengier@gramps-project.org>


svn: r9221
This commit is contained in:
Benny Malengier
2007-10-20 21:24:32 +00:00
parent fb0a6779d2
commit 022596af8a
3 changed files with 23 additions and 14 deletions

View File

@ -90,6 +90,23 @@ except:
gettext.textdomain("gramps")
gettext.install("gramps",loc,unicode=1)
#-------------------------------------------------------------------------
#
# Minimum version check
#
#-------------------------------------------------------------------------
MIN_PYTHON_VERSION = (2, 5, 0, '', 0)
if not sys.version_info >= MIN_PYTHON_VERSION :
print gettext.gettext("Your Python version does not meet the "
"requirements. At least python %d.%d.%d is needed to"
" start GRAMPS.\n\n"
"GRAMPS will terminate now.") % (
MIN_PYTHON_VERSION[0],
MIN_PYTHON_VERSION[1],
MIN_PYTHON_VERSION[2])
sys.exit(1)
#-------------------------------------------------------------------------
#
# gramps libraries