Debian Codegraph @

test cases/common/129 build by default/checkexists.py

raw
1 #!/usr/bin/env python3
2
3 import os.path, sys
4
5 invert = False
6 for path in sys.argv[1:]:
7 if path == '--not':
8 invert = True
9 elif not os.path.exists(path) ^ invert:
10 sys.exit(1)