Understanding .pth in site-packages

Josh English Joshua.R.English at gmail.com
Sat Aug 27 18:49:44 EDT 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