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:
1 parent
6bcba1fbea
commit
2aa2233d9b
1 file changed
+2
-1
@@ -80,7 +80,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE:
|
||||
yaml = YAML(typ='rt')
|
||||
yaml.preserve_quotes = True
|
||||
else:
|
||||
ExtSafeConstructor.name = fname
|
||||
if not hasattr(ExtSafeConstructor, 'name'):
|
||||
ExtSafeConstructor.name = fname
|
||||
yaml = YAML(typ='safe')
|
||||
yaml.Constructor = ExtSafeConstructor
|
||||
|
||||
|
||||
Reference in new issue
Block a user