From bb80efbacd3e02728c3a9cbbf3c73ac4beeb997e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Fri, 28 Aug 2009 22:18:22 +0200 Subject: Make version tool work on Windows. diff --git a/BuildTools/SCons/Version.py b/BuildTools/SCons/Version.py index c707942..94f8510 100644 --- a/BuildTools/SCons/Version.py +++ b/BuildTools/SCons/Version.py @@ -1,7 +1,7 @@ -import subprocess +import subprocess, os def getGitBuildVersion() : - p = subprocess.Popen("git rev-parse HEAD", shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True) + p = subprocess.Popen("git rev-parse HEAD", shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=(os.name != "nt")) return p.stdout.read().rstrip()[0:7] def getBuildVersion(version = None) : -- cgit v0.10.2-6-g49f6