(program_name)
| 195 | |
| 196 | |
| 197 | def program_paths(program_name): |
| 198 | paths = [] |
| 199 | exts = filter(None, os.environ.get('PATHEXT', '').split(os.pathsep)) |
| 200 | path = os.environ['PATH'] |
| 201 | for p in os.environ['PATH'].split(os.pathsep): |
| 202 | p = os.path.join(p, program_name) |
| 203 | if os.access(p, os.X_OK): |
| 204 | paths.append(p) |
| 205 | for e in exts: |
| 206 | pext = p + e |
| 207 | if os.access(pext, os.X_OK): |
| 208 | paths.append(pext) |
| 209 | return paths |
| 210 | |
| 211 | def _get_field_actual(cant_be_number, raw_string, field_names): |
| 212 | for line in raw_string.splitlines(): |
no test coverage detected