def path_exists_glob(path):
 return (True if glob.glob(os.path.expanduser(path)) else False)

def path_exists_glob ( path ) : return ( True if glob . glob ( os . path . expanduser ( path ) ) else False )
tests to see if path after expansion is a valid path .