Given a set or arguments, compute command-line.
(args)
| 174 | |
| 175 | |
| 176 | def get_cmd_line(args): |
| 177 | """Given a set or arguments, compute command-line.""" |
| 178 | blanks = set(' \t') |
| 179 | args = [s if blanks.isdisjoint(s) else "'" + s + "'" for s in args] |
| 180 | return ' '.join(args) |
| 181 | |
| 182 | def find_first_process(name): |
| 183 | for i in mp.psutil.process_iter(): |