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

liruncong2018 liruncong2018 at qq.com
Thu May 5 11:23:23 EDT 2022


Hello Mats Wichmann,
I replaced "${workspaceRoot}" with "$${workspaceRoot}" and it still doesn't work, is it related to "{" and "}"?





------------------ Original ------------------
From:                                                                                                                        "SCons users mailing list"                                                                                    <mats at wichmann.us>;
Date: Thu, May 5, 2022 11:07 PM
To: "scons-users"<scons-users at scons.org>;

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



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.


_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20220505/c893494e/attachment.htm>


More information about the Scons-users mailing list