From 3edda3c137e251a85e6da4b71233e4bd50a02309 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 8 Jun 2015 15:06:49 +0200 Subject: [PATCH] Try check_output --- setup_environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup_environment.py b/setup_environment.py index 61195324..073f36a1 100755 --- a/setup_environment.py +++ b/setup_environment.py @@ -109,7 +109,7 @@ l_need = [] # | |_| | | (_ |_ | (_) | | # def check_output(*popenargs, **kwargs): - r"""Run command with arguments and return its output as a byte string. + """Run command with arguments and return its output as a byte string. Backported from Python 2.7 as it's implemented as pure python on stdlib. @@ -240,7 +240,7 @@ if "ninja" in l_need_genealogy: "wget {0} -O {1} -o /dev/null ;".format(url, path_archive), "./scripts/install_ninja.sh 2>/dev/null;", "cd -"] - subprocess.check_call(" ".join(l_cmd), shell=True) + subprocess.check_output(" ".join(l_cmd), shell=True) l_need_genealogy.remove("ninja") print """