Debian Codegraph @

test cases/common/160 custom target template substitution/checkcopy.py

raw
1 #!/usr/bin/env python3
2
3 import sys
4 import shutil
5
6 if '@INPUT1@' in sys.argv[1]:
7 shutil.copyfile(sys.argv[2], sys.argv[3])
8 else:
9 sys.exit('String @INPUT1@ not found in "{}"'.format(sys.argv[1]))