I found this script online and I made a few tweaks to it but it appears that it only searches the current directory. Is there a way to make it search the entire file system. Here is the script:
import stat
import sys
import os
import string
import commands
try:
pattern = raw_input("Enter the file name to search for:\n")
commandString = "find " + pattern
commandOutput = commands.getoutput(commandString)
findResults = string.split(commandOutput, "\n")
print "Files:"
print commandOutput
print "========================================="
for file in findResults:
mode=stat.S_IMODE(os.lstat(file)[stat.ST_MODE])
except:
print "There was a problem in searching"