std. python from cygwin: the final word (?)

Jason Tishler jason at tishler.net
Wed Nov 28 10:10:29 EST 2001


John,

On Wed, Nov 28, 2001 at 12:22:05PM +0000, John J. Lee wrote:
> After several, surprising long, threads, the collective brain power of
> c.l.python and the cygwin mailing list has produced the following magical
> shell incantations:
> 
> #!/bin/sh
> 
> python='/d/Program Files/Python21/python'
> if [ "$1" = "" ]; then exec "$python"; fi
> cp=`cygpath -w $1`
> shift
> exec "$python" "$cp" ${1+"$@"}

If you are willing to use rxvt, then the following trigger is a simpler
alternative:

    #!/usr/bin/env pythonw

Jason




More information about the Python-list mailing list