MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / get_exec_line

Function get_exec_line

tests/autoalloc/test_autoalloc.py:413–419  ·  view source on GitHub ↗

`script_path` should be a path to qsub or sbatch submit script.

(script_path: str)

Source from the content-addressed store, hash-verified

411
412
413def 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)

Callers 3

parse_exec_lineFunction · 0.85
test_start_stop_cmdFunction · 0.85
test_worker_wrap_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected