[Scons-users] env.command fails on mingw shell
Gary Oberbrunner
garyo at oberbrunner.com
Thu Oct 25 17:30:38 EDT 2012
On Thu, Oct 25, 2012 at 5:13 PM, Kraus Philipp
<philipp.kraus at flashpixx.de>wrote:
> Hello,
>
> I'm running mingw shell and Scons. If I run this short example
>
> import os
> env = Environment(ENV = {'PATH' : os.environ["PATH"]})
> env.Command("test", "", "cd an_existing_directory;")
>
> the env.Command line breaks with an error "the system can not found the
> path"
> If you remove the semicolon in the command line to
>
> env.Command("test", "", "cd an_existing_directory")
>
> the script is run without errors.
On Windows, all Commands are by default executed by cmd.exe. Set
env['SHELL'] to whatever shell you'd like to use.
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121025/cff97ea9/attachment.html>
More information about the Scons-users
mailing list