code: def check_path(path, base, os_sep=os.sep):
      '''
      Check if both given paths are equal.
  
      :param path: absolute path
      :type path: str
      :param base: absolute base path
      :type base: str
      :param os_sep: path separator, defaults to os.sep
      :type base: str
      :return: wether two path are equal or not
      :rtype: bool
      '''
      base = base[:-len(os_sep)] if base.endswith(os_sep) else base
      return os.path.normcase(path) == os.path.normcase(basef check_path(path, base, os_sep=os.sep):
      '''
      Check if both given paths are equal.
  
      :param path: absolute path
      :type path: str
      :param base: absolute base path
      :type base: str
      :param os_sep: path separator, defaults to os.sep
      :type base: str
      :return: wether two path are equal or not
      :rtype: bool
      '''
      base = base[:-len(os_sep)] if base.endswith(os_sep) else base
      return os.path.normcase(path) == os.path.normcase(base)
docs: Check if both given paths are equal.
  
      :param path: absolute path
      :type path: str
      :param base: absolute base path
      :type base: str
      :param os_sep: path separator, defaults to os.sep
      :type base: str
      :return: wether two path are equal or not
      :rtype: bool