From 37e8c2831b8ae019d507f080667e38afa41b8e06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Thu, 20 Oct 2016 15:45:11 +0200 Subject: [PATCH] fix version detection - 86d841ef --- scripts/salome_compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2