Understanding .pth in site-packages

Josh English Joshua.R.English at gmail.com
Sun Aug 28 00:49:44 CEST 2011

When I run: os.listdir('c:\Python27\lib\site-packages') I get the contents in order, so the folders come before .pth files (as nothing comes before something.) I would guess Python is using os.listdir. Why wouldn't it?

More information about the Python-list mailing list