what happened to sys.prefix in 2.0?

Hamish Lawson hamish_lawson at yahoo.co.uk
Tue Nov 7 04:25:54 EST 2000


I have also encountered some strangeness with sys.prefix, at least
under Windows.

I have Python installed on Windows in C:\Python. I copied python.exe to
in C:\usr\bin for CGI scripts running under Apache (Apache for Windows
uses the script's #! line). If I enter 'python' at the command line I
get the executable in C:\Python and sys.prefix gives me 'C:\\Python'.
However if I run C:\usr\bin\python, sys.prefix gives me ''.

Hamish Lawson


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list