(abs_path: Text)
return abs_path[len(_project_meta.RootDir) + 1:]
convert absolute path to relative path, based on project_meta.RootDir

    Args:
        abs_path: absolute path

    Returns: relative path based on project_meta.RootDir
convert absolute path to relative path, based on project_meta.RootDir
convert absolute path to relative path based on project_meta . RootDir
def convert_relative_project_root_dir(abs_path: Text) -> Text:
    """ convert absolute path to relative path, based on project_meta.RootDir

    Args:
        abs_path: absolute path

    Returns: relative path based on project_meta.RootDir

    """
    _project_meta = load_project_meta(abs_path)
    if not abs_path.startswith(_project_meta.RootDir):
        raise exceptions.ParamsError(
            f"failed to convert absolute path to relative path based on project_meta.RootDir\n"
            f"abs_path: {abs_path}\n"
            f"project_meta.RootDir: {_project_meta.RootDir}"
        )

    return abs_path[len(_project_meta.RootDir) + 1:]
def convert_relative_project_root_dir ( abs_path : Text ) -> Text : _project_meta = load_project_meta ( abs_path ) if not abs_path . startswith ( _project_meta . RootDir ) : raise exceptions . ParamsError ( f"failed to convert absolute path to relative path based on project_meta.RootDir\n" f"abs_path: {abs_path}\n" f"project_meta.RootDir: {_project_meta.RootDir}" ) return abs_path [ len ( _project_meta . RootDir ) + 1 : ]