def default_path(path):
    """
    Converts path to default form (with no slash at the end)
    :param path: string - path to convert
    :return:     string - result path
    """
    while path[len(path) - 1] == '/' or path[len(path) - 1] == '\\':
        path = path[0:-1]

    return path