fix: only change prefix if path is relative

This commit is contained in:
egarette@silique.fr 2024-12-11 20:51:08 +01:00
parent a91a4d6a55
commit 8afb787c98

View file

@ -125,6 +125,8 @@ class Annotator(Walk):
if family.type == "dynamic" and isinstance(
family.dynamic, VariableCalculation
):
path = family.dynamic.variable
if family.version != "1.0" and self.objectspace.paths.regexp_relative.search(path):
path = self.objectspace.paths.get_full_path(
family.dynamic.variable,
family.path,