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