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 "}"?





------------------&nbsp;Original&nbsp;------------------
From:                                                                                                                        "SCons users mailing list"                                                                                    <[email protected]&gt;;
Date:&nbsp;Thu, May 5, 2022 11:07 PM
To:&nbsp;"scons-users"<[email protected]&gt;;

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



On 5/5/22 08:56, liruncong2018 via Scons-users wrote:
&gt; Hi,
&gt; How to make "${xxx}" in the env.Textfile source string output as it is,
&gt; without being replaced with an empty string?
&gt; 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
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.