import fnmatch


def getGlobValue(globs, path):
    """ Returns the value of the glob, where path matches

        :Parameters:
         - `globs`: The glob list (``[(glob, associated value)]``)
         - `path`: The path to match

        :Types:
         - `globs`: sequence
         - `path`: ``str``

        :return: The matched value or ``None``
        :rtype: any
    """

    result = None
    for glob in globs:
        if fnmatch.fnmatchcase(path, glob[0]):
            result = glob[1]
            break

    return result