Mowry, Peter wrote:
>
> David,
>
>  
>
> The subprocess module doesn't work for interactive programs (I think) 
> (see appended pexpect faq).
>
>  
>
> So instead, I was trying to get something like the following working:
>
> import simnow # import complex simnow C++ application
>
> simnow.start() # spawn simnow's main method
>
> output1 = simnow.sendCommand("load platform x") # blocking call to a 
> single simnow C++ functions
>
> # This is our real current goal, but if I get this working, we might 
> consider exposing other simnow functionality to the simnow python module.
>
>  
>
> disutils is listed in the extend/embed python doc 
> (http://www.python.org/doc/ext/ext.html).  This doc seems to be saying 
> that disutils is a cross-plaform way to build a python module ("extend 
> python").
>
>  
>
Distutils is kind of like "make" for Python.  It's there to help you 
build and distribute Python modules, but that's basically all it does.  
There's nothing in distutils to help with cross-platform process IO.

Based on the pexpect page it looks like it should work with Cygwin on 
Windows, so you could consider using that instead.

-- Matt Good
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to