Missing cwd handling in exec_command

This commit is contained in:
Thomas Nagy 2016-01-30 16:59:35 +01:00
parent 361e4b7730
commit 2999a120a1
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
3 changed files with 12 additions and 0 deletions

View File

@ -284,6 +284,10 @@ else:
if Logs.verbose and not kw['shell'] and not Utils.check_exe(cmd[0]):
raise Errors.WafError("Program %s not found!" % cmd[0])
if 'cwd' in kw:
if not isinstance(kw['cwd'], str):
kw['cwd'] = kw['cwd'].abspath()
idx = threading.current_thread().idx
kw['cmd'] = cmd

View File

@ -133,6 +133,10 @@ if 1:
if Logs.verbose and not kw['shell'] and not Utils.check_exe(cmd[0]):
raise Errors.WafError("Program %s not found!" % cmd[0])
if 'cwd' in kw:
if not isinstance(kw['cwd'], str):
kw['cwd'] = kw['cwd'].abspath()
idx = threading.current_thread().idx
kw['cmd'] = cmd

View File

@ -230,6 +230,10 @@ if 1:
if Logs.verbose and not kw['shell'] and not Utils.check_exe(cmd[0]):
raise Errors.WafError("Program %s not found!" % cmd[0])
if 'cwd' in kw:
if not isinstance(kw['cwd'], str):
kw['cwd'] = kw['cwd'].abspath()
idx = threading.current_thread().idx
kw['cmd'] = cmd