While looking at the Media section of the Gramps Data Model diagram, there doesn’t seem to anything to show how the Path is marked as using the Relative Media Path instead of the Absolute path.
It looks like GEDCOM7 file paths works in a similar manner. Except that they store a default base directory path in the Header and explicitly use the RELA tag again to state that the object’s path (which, unlike Absolute paths, does not start with a slash directory separator) is relative to the same base directory.
0 HEAD
1 GEDC
2 VERS 7.0
1 FILE-REF
2 RELA /Users/username/Documents/Genealogy
0 @M1@ OBJE
1 FILE Photos/Family/reunion2023.jpg
2 RELA /Users/username/Documents/Genealogy
1 FORM jpg
1 TITL Family Reunion 2023
0 TRLR
This SuperTool script (a "SuperTool Script" type Note in .gramps XML format) can be pasted into the [**Import Text** add-on gramplet](https://gramps-project.org/wiki/index.php/Addon:ImportGramplet). Pressing the Import button creates the Note.
Then switch categories to Media and use the SuperTool addon tool to import the the script from the Note (File → Load from Note). Select some Media object and use the Execute button to show which which use Absolute or Relative paths.