def compile_impl(dst, src): with Path(dst).open(r'wt') as ostream: print(r'compile', src, file=ostream) with src_path.open(r'rt') as istream: _copyfileobj(istream, ostream)
def link_impl(dst, *obj): with Path(dst).open(r'wt') as ostream: print(r'link', *obj, file=ostream) for src in obj: with Path(src).open(r'rt') as istream: _copyfileobj(istream, ostream)
def c2c_impl(dst, src): Path = sys.path() with Path(dst).open(r'wt') as ostream: print(r'c2c', src, file=ostream) with Path(src).open(r'rt') as istream: _copyfileobj(istream, ostream)