[Scons-users] "${xxx}" problem in env.Textfile source string

liruncong2018 liruncong2018 at qq.com
Thu May 5 10:56:04 EDT 2022


Hi,
How to make "${xxx}" in the env.Textfile source string output as it is, without being replaced with an empty string?
str = "${workspaceRoot}\\myPath"
<<<
jsonFile = env.Textfile(
            filePath,
            jsonStr,
            workspaceRoot = str
        )

>>>
Expected output(filePath content):
${workspaceRoot}\\myPath
but the actual output:
\\myPath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20220505/b5d9a602/attachment.htm>


More information about the Scons-users mailing list