.pth files?

Skip Montanaro skip at pobox.com
Tue Mar 22 13:52:28 EST 2005


    Ben> I'm unclear on how .pth files work.  Some posts imply they can be
    Ben> arbitrarily named, as long as they include the .pth extension, and
    Ben> can exist anywhere in the current sys.path.  Other documentation
    Ben> seems to imply that they must be named <package>.pth, although I'm
    Ben> not sure what "package" it would be named after.

<package>.pth naming is just a convention so you can easily sort out the
association for each of multiple pth files.  I have a mojam.pth file but no
"mojam" package on my server.  Works just fine.

Skip



More information about the Python-list mailing list