Debian Codegraph @

test cases/common/71 ctarget dependency/gen2.py

raw
1 #!/usr/bin/env python3
2
3 import sys, os
4 from glob import glob
5
6 files = glob(os.path.join(sys.argv[1], '*.tmp'))
7 assert len(files) == 1
8
9 with open(files[0]) as ifile, open(sys.argv[2], 'w', encoding='utf-8') as ofile:
10 ofile.write(ifile.read())