WinNT and python as text filter...

Mark Hammond mhammond at skippinet.com.au
Tue Nov 30 08:31:51 EST 1999


How are you executing the code?  Are you just typing:

c:\>myscript.py > out

If so, there is a bug in the NT command prompt - you need to specify the
full path to Python.exe on the command line, and it will work...

Mark.

Tim Ottinger wrote in message <3842f32d.30322451 at news.concentric.net>...
>I'm working in WinNT with VIM (good tool) and wanted to write some
>handy filters in python to help me with routine editing chores.
>
>I run my python command at the command line and get the output I want
>printed nicely on my screen. However, if I pipe it to a file the file
>comes out empty, if I pipe it to more I get nothing at all.
>
>Does python know it's in a pipe and act differently? Does 'print' not
>work right in NT? What's up?
>
>My python is:
>
>  PythonWin 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on
>win32
>  Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>  Portions Copyright 1994-1999 Mark Hammond
>Tim






More information about the Python-list mailing list