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:
Max Trunov 2023-04-28 10:23:36 +05:00
parent 2f8ac26e86
commit 05e1b2f0e4
1 changed files with 1 additions and 1 deletions

View File

@ -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))