From 2d66bb51caf02c979f53688257dd33d7366b3ebc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Oct 2010 11:12:24 -0700 Subject: autobuild: cwd is needed on all command types --- script/autobuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/autobuild.py b/script/autobuild.py index be8006c324..4e3bc5101f 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -78,9 +78,9 @@ def run_cmd(cmd, dir=".", show=None, output=False, checkfail=True): if output: return Popen([cmd], shell=True, stdout=PIPE, cwd=dir).communicate()[0] elif checkfail: - return check_call(cmd, shell=True) + return check_call(cmd, shell=True, cwd=dir) else: - return call(cmd, shell=True) + return call(cmd, shell=True, cwd=dir) class builder(object): -- cgit