4 In this case, print the commands being executed as strings
5 (the commands are usually lists, so this can be misleading)
8 import Build, Utils, Logs
10 def exec_command(self, cmd, **kw):
12 if isinstance(cmd, list):
14 Logs.debug('runner: %s' % txt)
16 self.log.write('%s\n' % cmd)
19 if not kw.get('cwd', None):
21 except AttributeError:
22 self.cwd = kw['cwd'] = self.bldnode.abspath()
23 return Utils.exec_command(cmd, **kw)
24 Build.BuildContext.exec_command = exec_command