"Locate" command in Python

mwt michaeltaft at gmail.com
Mon Apr 10 03:49:59 CEST 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