import fnmatch


def path_in_patterns(patterns, path):
    """Check a path against many fnmatch patterns"""
    pattern_matches = (
        pattern for pattern in patterns if fnmatch.fnmatch(path, str(pattern)))
    return any(pattern_matches)