summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscript/autobuild.py4
1 files 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):