Check out the glob module--it may be what you need. http://aspn.activestate.com/ASPN/Python/Reference/Products/ActivePython/pyth on/lib/module-glob.html // mark