You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Leo Simons <ma...@leosimons.com> on 2005/03/21 22:08:54 UTC
Re: svn commit: r158497 - in gump/trunk/python/gump:
core/language/java.py util/process/launcher.py
You know, we should really investigate using popen...
http://docs.python.org/lib/module-popen2.html
Cheers!
- Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Windows
Posted by Leo Simons <ma...@leosimons.com>.
On 22-03-2005 04:36, "Adam R. B. Jack" <aj...@apache.org> wrote:
>> You know, we should really investigate using popen...
>>
>> http://docs.python.org/lib/module-popen2.html
>
> The main reason this is all a mess, and I'm not using the nice/simple posix
> functions is I couldn't find a portable (to windows) mechanism to pass
> environment (e.g. CLASSPATH) in a thread safe way. Basically it is the
> windows side of Python that makes this ugly. That and I've tinkered so many
> times that I'm sick of looking at it again! ;-) Let's see how this iteration
> takes, and perhaps I'll get inspired to look at it all w/ a 'fresher' pair
> of eyes.
Ed Korthoff suggested that we implement stuff like this twice, once for
posix, and once using the win32 api, since apparently that's the only way to
those things cleanly. The advantage there is that we can look at how various
portable C programs do it (ie httpd), since the python functionality there
is just a very thin wrapper or glue library to the native functionality.
I dunno. I don't know a whole lot about any of this yet, I'm just relaying
advice ;-)
Cheers,
Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: svn commit: r158497 - in gump/trunk/python/gump: core/language/java.py util/process/launcher.py
Posted by "Adam R. B. Jack" <aj...@apache.org>.
> You know, we should really investigate using popen...
>
> http://docs.python.org/lib/module-popen2.html
>
The main reason this is all a mess, and I'm not using the nice/simple posix
functions is I couldn't find a portable (to windows) mechanism to pass
environment (e.g. CLASSPATH) in a thread safe way. Basically it is the
windows side of Python that makes this ugly. That and I've tinkered so many
times that I'm sick of looking at it again! ;-) Let's see how this iteration
takes, and perhaps I'll get inspired to look at it all w/ a 'fresher' pair
of eyes.
regards
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org