`script_path` should be a path to qsub or sbatch submit script.
(script_path: str)
| 411 | |
| 412 | |
| 413 | def get_exec_line(script_path: str): |
| 414 | """ |
| 415 | `script_path` should be a path to qsub or sbatch submit script. |
| 416 | """ |
| 417 | with open(script_path) as f: |
| 418 | data = f.read() |
| 419 | return [line for line in data.splitlines(keepends=False) if line and not line.startswith("#")][0] |
| 420 | |
| 421 | |
| 422 | @dataclasses.dataclass(frozen=True) |
no outgoing calls
no test coverage detected