回复: "${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&nbsp;Daniel Moody,
When I just wanted to confirm this problem again, I found that it was inconsistent with the test results yesterday. There is no problem now, I don't know what caused it yesterday, but it can be ignored for now. Thanks!




------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "SCons users mailing list"                                                                                    <[email protected]&gt;;
发送时间:&nbsp;2022年5月5日(星期四) 晚上11:41
收件人:&nbsp;"SCons users mailing list"<[email protected]&gt;;

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



double dollar sign worked for me, this was my test:

env = Environment(tools=['textfile'])
env.Textfile('out.txt',
&nbsp; &nbsp; '$${workspaceRoot}\\myPath'
)

out.txt:
${workspaceRoot}\myPath



On Thu, May 5, 2022 at 10:27 AM Mats Wichmann <[email protected]&gt; wrote:

On 5/5/22 09:23, liruncong2018 via Scons-users wrote:
 &gt; Hello Mats Wichmann,
 &gt; I replaced "${workspaceRoot}" with "$${workspaceRoot}" and it still
 &gt; doesn't work, is it related to "{" and "}"?
 
 shouldn't be.... the doubled $$ should turn off interpretation of the
 variable reference, whether it's wrapped in {} or not.&nbsp; &nbsp;Sometimes there
 are so many layers of substitution that things are more complex... we'll
 see if anyone else has ideas.
 
 _______________________________________________
 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.