git revision in windows

This commit is contained in:
Josip 2014-04-09 23:08:06 +02:00
parent 2c2f1d61c8
commit 6836dbd5bd

View File

@ -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