subprocess-util/common.py

12 lines
296 B
Python
Raw Normal View History

2023-01-11 13:17:52 +01:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
def _get_chunk_file(chunk_file_tmpl: Path, ct: int):
return chunk_file_tmpl.parent.joinpath(f'{chunk_file_tmpl.name}.{ct}')
2023-01-11 13:17:52 +01:00
def _get_remote_socket(target: Path):
return target.parent.joinpath(f'{target}.SOCKET')