(path)
| 3453 | package_root = run(f'brew --prefix {package}', capture=1).strip() |
| 3454 | log(f'{package=} {package_root=}') |
| 3455 | def add(path): |
| 3456 | log(f'{path=}') |
| 3457 | if os.path.isdir(path): |
| 3458 | log(f'Prepending to $PATH: {path}') |
| 3459 | PATH = env['PATH'] |
| 3460 | env['PATH'] = f'{path}:{PATH}' |
| 3461 | return 1 |
| 3462 | else: |
| 3463 | log(f'Not a directory: {path=}') |
| 3464 | return 0 |
| 3465 | n = 0 |
| 3466 | n += add(f'{package_root}/bin') |
| 3467 | if gnubin: |
no test coverage detected