| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 5 | class Externals(object): |
||
| 6 | """Utility that wraps the python subprocess module to start other applications |
||
| 7 | """ |
||
| 8 | |||
| 9 | def run(self, command): |
||
| 10 | """Start a subprocess with the command provided. |
||
| 11 | |||
| 12 | Args: |
||
| 13 | command (list): A list of command elements. |
||
| 14 | """ |
||
| 15 | output = subprocess.check_output(command) |
||
| 16 | return Result(True, output) |
||
| 17 | |||
| 24 |