I fixed the problem by creating a file call MyPath.pth that has only one line H:/Python
and placing it in the C:\Python31\Lib\site-packages directory. So as a practical matter, my problem is solved. That said, I'm still puzzled by why Python 3.1 acts up when I set the environment variable PYTHONPATH. It certainly caused no problem with the 2.X series. -- http://mail.python.org/mailman/listinfo/python-list