DefaultEnvironment(tools=[])
env = Environment(tools=['textfile'])

env['FOO_PATH'] = r'Z:\mongo\build\install\bin'

foo = env.Substfile(
    target="substfile",
    source="substfile.in",
    SUBST_DICT={
        "@foo_path@": "$FOO_PATH",
    }
)
