[r21614]Move VERSION, VERSION_TUPLE, major_version

from const.py to version.py

As noted in the previous change, importing const into setup.py tried to
initialize GrampsLocale and ResourcePath, which won't work. Since all we
want is the VERSION string, move that to a new file, gramps/version.py

svn: r21619
This commit is contained in:
John Ralls
2013-03-11 22:54:31 +00:00
parent 3a73837dc9
commit 13a49a63ff
16 changed files with 50 additions and 16 deletions

View File

@@ -43,7 +43,7 @@ import io
# GRAMPS modules
#
#-------------------------------------------------------------------------
from ..const import VERSION as GRAMPSVERSION, VERSION_TUPLE
from ...version import VERSION as GRAMPSVERSION, VERSION_TUPLE
from ..const import IMAGE_DIR
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext

View File

@@ -43,7 +43,8 @@ else:
#
#-------------------------------------------------------------------------
from ._pluginreg import make_environment
from ..const import USER_PLUGINS, VERSION_TUPLE
from ..const import USER_PLUGINS
from ...version import VERSION_TUPLE
from ..utils.file import get_unicode_path_from_file_chooser
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext