The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
236 B
13 lines
236 B
1 year ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import os
|
||
|
import sys
|
||
|
|
||
|
key = sys.argv[1]
|
||
|
expected = sys.argv[2] if len(sys.argv) > 2 else None
|
||
|
|
||
|
if os.environ.get(key) == expected:
|
||
|
sys.exit(0)
|
||
|
|
||
|
sys.exit(f'Expected {expected!r}, was {os.environ.get(key)!r}')
|