make_path_absolute_if_relative
- glotaran.utils.io.make_path_absolute_if_relative(path: pathlib.Path) pathlib.Path [source]
Get a path as absolute if relative.
- Parameters
path (Path) – The path to make absolute.
- Returns
Either the original path or the path as absolute relative to the script directory.
- Return type
Path