"Locate" command in Python
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

"Locate" command in Python

From: mwt <michaeltaft@gmail.com>
Date: Mon Apr 10 2006 - 03:49:59 CEST

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.
Received on Sun Apr 30 22:39:31 2006