Re: "${xxx}" problem in env.Textfile source string
liruncong2018 via Scons-users <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
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" <[email protected]>;
Date: Thu, May 5, 2022 11:07 PM
To: "scons-users"<[email protected]>;
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
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users