Fix including from sub dir (#18378)
The include path is now always relative to the root of the config dir.
This commit is contained in:
parent
9c92151ad1
commit
b8c06ad019
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE:
|
||||||
yaml = YAML(typ='rt')
|
yaml = YAML(typ='rt')
|
||||||
yaml.preserve_quotes = True
|
yaml.preserve_quotes = True
|
||||||
else:
|
else:
|
||||||
ExtSafeConstructor.name = fname
|
if not hasattr(ExtSafeConstructor, 'name'):
|
||||||
|
ExtSafeConstructor.name = fname
|
||||||
yaml = YAML(typ='safe')
|
yaml = YAML(typ='safe')
|
||||||
yaml.Constructor = ExtSafeConstructor
|
yaml.Constructor = ExtSafeConstructor
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue