[Python-Dev] Change to sys.path[0] for Python 2.3 (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 22 Nov 2001 12:24:27 +1300 (NZDT)


"James C. Ahlstrom" <jim@interet.com>:

If we want the directory of the script to be sys.path[0], then an absolute path should be inserted.

+1

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+