added release.txt blurb. Fixed spelling typo in Defaults.xml
[scons.git] / test / fixture / wrapper_with_args.py
blob662107778784ac2275e82385fe2728bb70df0e3c
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 """
6 Command wrapper taking arguments, for testing SCons.
8 Writes the command name and argument list to file "wrapper.out",
9 then passes the command line on to subprocess.
10 No checking is done.
11 """
12 import os
13 import sys
14 import subprocess
16 if __name__ == '__main__':
17 path = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'wrapper.out')
18 with open(path, 'a') as f:
19 f.write("wrapper_with_args.py %s\n" % " ".join(sys.argv[1:]))
20 subprocess.run(sys.argv[1:], check=False)