[Scons-users] Changing working directory

Pawel Tomulik ptomulik at meil.pw.edu.pl
Sat Apr 20 09:40:51 EDT 2013


Maybe it could be good point to provide something like '$CDCOM'
construction variable by default? Initially it could be defined in a
way similar to what the 'tex' tool does:

https://bitbucket.org/scons/scons/src/672a2af57804/src/engine/SCons/Tool/tex.py#cl-926


W dniu 19.04.2013 20:28, Gary Oberbrunner pisze:

> It is better NOT to use the chdir keyword param -- that won't work with

> -j because a process can have only one current working dir. The 'cd

> ...' method works better, but of course is not as cross-platform.

>

>

> On Fri, Apr 19, 2013 at 2:25 PM, Pawel Tomulik <ptomulik at meil.pw.edu.pl

> <mailto:ptomulik at meil.pw.edu.pl>> wrote:

>

> What is actually preferred method for changing working directory by

> tools when using external programs? Some of the tools I've seen use

> construction such as 'cd $TARGET.dir && dosomething $TARGET -o $SOURCE'.

> Is there some reason for this? Is this portable, or maybe it is better

> to use chdir keyword parameter of SCons.Builder.Builder?

>

> Regards?

> --

> Paweł Tomulik

>

> _________________________________________________

> Scons-users mailing list

> Scons-users at scons.org <mailto:Scons-users at scons.org>

> http://four.pairlist.net/__mailman/listinfo/scons-users

> <http://four.pairlist.net/mailman/listinfo/scons-users>

>

>

>

>

> --

> Gary

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>



--
Paweł Tomulik



More information about the Scons-users mailing list