1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
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.
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)