1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

autobuild: cwd is needed on all command types

This commit is contained in:
Andrew Tridgell 2010-10-01 11:12:24 -07:00
parent f6bc4c08b1
commit 2d66bb51ca

View File

@ -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):