[FWTools] [win32] openev python or pythonw?

Frank Warmerdam warmerdam at pobox.com
Thu Nov 1 21:31:56 EDT 2007


Matt Wilkie wrote:
> Hi,
> 
> Is there a reason %fwtools_dir%\openev.bat uses "pythonw" and 
> "%fwtools_dir%\bin\openev.bat" uses "python"?
> 
> I ask because the latter will echo messages to the console while the 
> former does not. Makes troubleshooting a bit tricky at times. :)
> 
> :: no messages
> pythonw "%OPENEV_HOME%\pymod\openev.py" %1 %2 %3 %4 %5 %6 %7
> 
> :: yes messages
> python "%OPENEV_HOME%\pymod\openev.py" %*

Matt,

I think the theory was that it is undesirable to create a new console
window with a bunch of stuff in it for the icon launch, but that the user
working from the commandline isn't likely to be so put off by it.

Or perhaps, I just changed one to python from pythonw once so I could
debug something.

I would hate to always have that console around with a bunch of gobblygook
in it.

> (and while we're at it, we might as well make both of them use %* as %7 
> limits the number of parameters which can be passed while %* passes 
> everything to the limits of the command shell)

Fixed.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the FWTools mailing list