From: Cédric Aguerre Date: Thu, 20 Oct 2016 13:45:11 +0000 (+0200) Subject: fix version detection - 86d841ef X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37e8c2831b8ae019d507f080667e38afa41b8e06;p=tools%2Fpvdeliv.git fix version detection - 86d841ef --- diff --git a/scripts/salome_compile.py b/scripts/salome_compile.py index d718ba1..70d98bc 100644 --- a/scripts/salome_compile.py +++ b/scripts/salome_compile.py @@ -20,7 +20,7 @@ def __getCurrentVersion(srcDir,pattern, config): return s elif isinstance(srcLoc,tuple): dirGitLoc=os.path.splitext(os.path.basename(srcLoc[0]))[0] - p=subprocess.Popen(["git","rev-parse","--verify","HEAD"],cwd=dirGitLoc) + p=subprocess.Popen(["git","rev-parse","--verify","HEAD"],cwd=dirGitLoc,stdout=subprocess.PIPE,stderr=subprocess.PIPE) p_out,p_err=p.communicate() if p.returncode != 0: msg = "Error in __getCurrentVersion\n" + p_err