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

Mats Wichmann mats at wichmann.us
Thu May 5 11:07:59 EDT 2022


On 5/5/22 08:56, liruncong2018 via Scons-users wrote:
> 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"

double the dollar sign.

A note on this recently was added to the manpage, not in a published
version yet, but it will look like:

* For a literal $ use $$. For example, $$FOO will be left in the final
string as $FOO.




More information about the Scons-users mailing list