def BasenamePath(self, path):
    """Determines the basename of the path.

    Args:
      path (str): path.

    Returns:
      str: basename of the path.
    """
    if path.endswith(self.PATH_SEPARATOR):
      path = path[:-1]
    _, _, basename = path.rpartition(self.PATH_SEPARATOR)
    return basename
def BasenamePath ( self , path ) : if path . endswith ( self . PATH_SEPARATOR ) : path = path [ : - 1 ] _ , _ , basename = path . rpartition ( self . PATH_SEPARATOR ) return basename
Determines the basename of the path.

    Args:
      path (str): path.

    Returns:
      str: basename of the path.