"posix" variable modifier doesn't exist?

Damjan Jovanovic <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAJm2B-nq6JUMKrnvkdzZtFKF+gbq2kn4RSXaoWc8G-fU+n1qUQ@mail.gmail.com>
Hi

The man page claims how there's a variable substitution modifier called
"posix":

*posix* - The path with directories separated by forward slashes (*/*).
Sometimes necessary on Windows systems when a path references a file on
other (POSIX) systems.

However it doesn't work:

env = Environment()
env['path1'] = Dir('src/images')
env['path2'] = env.subst('${path1.posix}')

scons: *** AttributeError `<class 'SCons.Node.FS.Dir'> object has no
attribute 'posix'' trying to evaluate `${path1.posix}'

I can use ${str(path1).replace('\\\\', '/')} but is there a better way?

Thank you
Damjan

_______________________________________________
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.