Understanding .pth in site-packages

Josh English Joshua.R.English at gmail.com
Sat Aug 27 18:39:24 EDT 2011


The setup.py script created the egg, but not the .pth file. I created that myself.

Thank you for clarifying about how .pth works. I know "redirect imports" was the wrong phrase, but it worked in my head at the time. It appears, at least on my system, that Python will find site-packages/foo before it finds and reads site-packages/foo.pth.

At least this solution gives me a way to develop my libraries outside of site-packages.


More information about the Python-list mailing list