def eglob(pattern, directory='.'):
 pieces = pathsplit(pattern)
 return __find_matches(pieces, directory)

def eglob ( pattern , directory = '.' ) : pieces = pathsplit ( pattern ) return __find_matches ( pieces , directory )
extended glob function that supports the all the wildcards supported by the python standard glob routine .