(path: str)
return str(ret)
converts the specified path to be absolute path.
    if the input path is relative, it's interpreted as relative to the original working directory
    if it's absolute, it's returned as is
    :param path: path to convert
    :return:
converts the specified path to be absolute path.
    if the input path is relative, it's interpreted as relative to the original working directory
    if it's absolute, it's returned as is
    :param path: path to convert
    :return:
converts the specified path to be absolute path . if the input path is relative it s interpreted as relative to the original working directory if it s absolute it s returned as is : param path : path to convert : return :
def to_absolute_path(path: str) -> str:
    """
    converts the specified path to be absolute path.
    if the input path is relative, it's interpreted as relative to the original working directory
    if it's absolute, it's returned as is
    :param path: path to convert
    :return:
    """
    p = Path(path)
    if not HydraConfig.initialized():
        base = Path(os.getcwd())
    else:
        base = Path(get_original_cwd())
    if p.is_absolute():
        ret = p
    else:
        ret = base / p
    return str(ret)
def to_absolute_path ( path : str ) -> str : p = Path ( path ) if not HydraConfig . initialized ( ) : base = Path ( os . getcwd ( ) ) else : base = Path ( get_original_cwd ( ) ) if p . is_absolute ( ) : ret = p else : ret = base / p return str ( ret )