1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
7 my_temp_dir = os.path.join(os.getcwd(), 'my_temp_files')
9 DefaultEnvironment(tools=[])
11 BUILDCOM='${TEMPFILE("xxx.py $TARGET $SOURCES")}',
13 TEMPFILEDIR=my_temp_dir,
15 env.AppendENVPath('PATH', os.curdir)
16 env.Command('foo.out', 'foo.in', '$BUILDCOM')
18 plain_env = Environment(
19 BUILDCOM='${TEMPFILE("xxx.py $TARGET $SOURCES")}',
22 plain_env.Command('global_foo.out', 'foo.in', '$BUILDCOM')