Task: 47875
Story: 2010711 Search for included files relative to the current job first Change-Id: I34a5743967bf7cbb8b464a0a36abad24180d61e4 Signed-off-by: Max Trunov <trunov_ms@taximaxim.ru>
This commit is contained in:
parent
2f8ac26e86
commit
05e1b2f0e4
|
@ -262,7 +262,7 @@ class BaseYamlObject(metaclass=abc.ABCMeta):
|
|||
return cls(loader.jjb_config, loader, loader.pos_from_node(node), value)
|
||||
|
||||
def __init__(self, jjb_config, loader, pos):
|
||||
self._search_path = jjb_config.yamlparser["include_path"]
|
||||
self._search_path = jjb_config.yamlparser["include_path"].copy()
|
||||
if loader.source_path:
|
||||
# Loaded from a file, find includes beside it too.
|
||||
self._search_path.append(os.path.dirname(loader.source_path))
|
||||
|
|
Loading…
Reference in New Issue