Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)