"${xxx}" problem in env.Textfile source string

liruncong2018 via Scons-users <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
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(
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filePath,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str
&nbsp; &nbsp; &nbsp; &nbsp; )

&gt;&gt;&gt;
Expected output(filePath content):
${workspaceRoot}\\myPath
but the actual output:
\\myPath

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.