summaryrefslogtreecommitdiff
path: root/third_party/waf/wafadmin/3rdparty/print_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/waf/wafadmin/3rdparty/print_commands.py')
-rw-r--r--third_party/waf/wafadmin/3rdparty/print_commands.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/third_party/waf/wafadmin/3rdparty/print_commands.py b/third_party/waf/wafadmin/3rdparty/print_commands.py
deleted file mode 100644
index 3b12aa31c11..00000000000
--- a/third_party/waf/wafadmin/3rdparty/print_commands.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /usr/bin/env python
-
-"""
-In this case, print the commands being executed as strings
-(the commands are usually lists, so this can be misleading)
-"""
-
-import Build, Utils, Logs
-
-def exec_command(self, cmd, **kw):
- txt = cmd
- if isinstance(cmd, list):
- txt = ' '.join(cmd)
- Logs.debug('runner: %s' % txt)
- if self.log:
- self.log.write('%s\n' % cmd)
- kw['log'] = self.log
- try:
- if not kw.get('cwd', None):
- kw['cwd'] = self.cwd
- except AttributeError:
- self.cwd = kw['cwd'] = self.bldnode.abspath()
- return Utils.exec_command(cmd, **kw)
-Build.BuildContext.exec_command = exec_command
-