fix: only change prefix if path is relative
This commit is contained in:
parent
a91a4d6a55
commit
8afb787c98
1 changed files with 6 additions and 4 deletions
|
@ -125,10 +125,12 @@ class Annotator(Walk):
|
||||||
if family.type == "dynamic" and isinstance(
|
if family.type == "dynamic" and isinstance(
|
||||||
family.dynamic, VariableCalculation
|
family.dynamic, VariableCalculation
|
||||||
):
|
):
|
||||||
path = self.objectspace.paths.get_full_path(
|
path = family.dynamic.variable
|
||||||
family.dynamic.variable,
|
if family.version != "1.0" and self.objectspace.paths.regexp_relative.search(path):
|
||||||
family.path,
|
path = self.objectspace.paths.get_full_path(
|
||||||
)
|
family.dynamic.variable,
|
||||||
|
family.path,
|
||||||
|
)
|
||||||
if family.version == '1.0' and "{{ suffix }}" in path:
|
if family.version == '1.0' and "{{ suffix }}" in path:
|
||||||
path = path.replace("{{ suffix }}", "{{ identifier }}")
|
path = path.replace("{{ suffix }}", "{{ identifier }}")
|
||||||
self.objectspace.informations.add(family.path, "dynamic_variable", path)
|
self.objectspace.informations.add(family.path, "dynamic_variable", path)
|
||||||
|
|
Loading…
Reference in a new issue