problem executing python scripts in cygwin bash shell

Douglas Alan nessus at mit.edu
Fri Apr 6 13:43:32 EDT 2001


"John J. Lee" <phrxy at csv.warwick.ac.uk> writes:

> Aha!  Good idea.  Perhaps even better:

> #!/bin/sh

> temp = "$@ "
> //d/apps/Python20/python `cygpath -w $1` ${temp#* }

Good idea, but not quite right.  You really want:

  #!/bin/sh

  exec //d/apps/Python20/python "`cygpath -w $1`" ${1+"$@"}

|>oug



More information about the Python-list mailing list