def check_path(path, base, os_sep=os.sep):
base = base[:-len(os_sep)] if base.endswith(os_sep) else base<EOL>return os.path.normcase(path) == os.path.normcase(base)<EOL>
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