From 01f470db16f39251879abbd64f67c2de0a7d6846 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 24 Jan 2010 21:27:46 +0000 Subject: [PATCH] Make const.py.in work for Windows, too svn: r14120 --- src/const.py.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/const.py.in b/src/const.py.in index 4314df674..a29bc7197 100644 --- a/src/const.py.in +++ b/src/const.py.in @@ -41,8 +41,11 @@ from gettext import gettext as _ # #------------------------------------------------------------------------- PROGRAM_NAME = "Gramps" -VERSION = "@VERSIONSTRING@" -VERSION_TUPLE = map(int, "@VERSION@".split(".", 2)) +if "@VERSIONSTRING@" == "@" + "VERSIONSTRING" + "@": + VERSION = "3.2.0" +else: + VERSION = "@VERSIONSTRING@" +VERSION_TUPLE = (3, 2, 0) #------------------------------------------------------------------------- #