* 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:
@ -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
|
||||
|
Reference in New Issue
Block a user