"Locate" command in Python

mwt michaeltaft at gmail.com
Sun Apr 9 21:49:59 EDT 2006


Is there a function in python that does what "locate" does in a bash
shell?

I know I could do it by using os.popen('locate'), but I'm curious if
there's a Python "native" way to go about it. Only needs to work in
Unix, but would be interesting if it was cross-platform. 

Thanks.




More information about the Python-list mailing list