Search path for python script

WGWhalley wgwhalley at gmail.com
Thu Sep 13 15:16:54 EDT 2007


This works for me under cygwin.

Start the script with the line
#! /usr/bin/python

Place the script in a directory shown by the command
echo $PATH

Invoke the script using its name, i.e.

test.py





More information about the Python-list mailing list