Re: "${xxx}" problem in env.Textfile source string

Daniel Moody <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CANws3JRdmuGf7emCPYQW93P19udUy3geexCiDNQocjdk=OnCtg@mail.gmail.com>
double dollar sign worked for me, this was my test:

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

out.txt:
${workspaceRoot}\myPath

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

> On 5/5/22 09:23, liruncong2018 via Scons-users wrote:
> > Hello Mats Wichmann,
> > I replaced "${workspaceRoot}" with "$${workspaceRoot}" and it still
> > 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.   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.