def fixup_path(path):
    """
    Standardize the path, replacing the back slashes with forward slash. This is more suitable for wlst
    commands. If the end of the path contains a slash, strip the slash from the resulting path.
    :param path: to be standardized with forward slashes
    :return: reformatted path
    """
    result = path
    if path is not None:
        result = path.replace('\\', '/')
        if result.endswith('/'):
            result = result[:-1]
    return result