summaryrefslogtreecommitdiffstats
path: root/test cases/common/129 build by default/checkexists.py
blob: 6664f7291a73bb90feb1bfe51b15aaa844ff3342 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3

import os.path, sys

invert = False
for path in sys.argv[1:]:
    if path == '--not':
        invert = True
    elif not os.path.exists(path) ^ invert:
        sys.exit(1)