def get_filename_without_ending(file_path):
    """
    Returns the filename without extension
    :param file_path:
    :return:
    """
    if '/' in file_path:
        filename = file_path.rsplit('/')[-1]
    else:
        filename = file_path
    return filename.rsplit('.', 1)[0]
