From 6836dbd5bd0539f8d860f2cdedd576c7baa2dad9 Mon Sep 17 00:00:00 2001 From: Josip Date: Wed, 9 Apr 2014 23:08:06 +0200 Subject: [PATCH] git revision in windows --- gramps/gen/const.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gen/const.py b/gramps/gen/const.py index 366e220c9..7fae63f40 100644 --- a/gramps/gen/const.py +++ b/gramps/gen/const.py @@ -135,7 +135,10 @@ if sys.version_info[0] < 3: ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname( unicode(__file__, sys.getfilesystemencoding())), os.pardir)) -VERSION += get_git_revision(ROOT_DIR) +git_revision = get_git_revision(ROOT_DIR) +if sys.platform == 'win32' and git_revision == "": + git_revision = get_git_revision(os.path.split(ROOT_DIR)[1]) +VERSION += git_revision # # Glade files