(program_name)
| 253 | |
| 254 | |
| 255 | def program_paths(program_name): |
| 256 | paths = [] |
| 257 | exts = filter(None, os.environ.get('PATHEXT', '').split(os.pathsep)) |
| 258 | path = os.environ['PATH'] |
| 259 | for p in os.environ['PATH'].split(os.pathsep): |
| 260 | p = os.path.join(p, program_name) |
| 261 | if os.access(p, os.X_OK): |
| 262 | paths.append(p) |
| 263 | for e in exts: |
| 264 | pext = p + e |
| 265 | if os.access(pext, os.X_OK): |
| 266 | paths.append(pext) |
| 267 | return paths |
| 268 | |
| 269 | def _get_field_actual(cant_be_number, raw_string, field_names): |
| 270 | for line in raw_string.splitlines(): |
no outgoing calls
no test coverage detected
searching dependent graphs…