diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-03-07 11:09:27 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-03-07 12:26:29 +0000 |
commit | 26284f7fc2ea9ae4121a37e4fc57093f6edc8448 (patch) | |
tree | 053a661a6d4345372de20c0157246808abfb56f8 /buildstream/plugin.py | |
parent | 5370740fc1eef6daf144831b148f13f883ebcd42 (diff) | |
download | buildstream-jennis/move_node_get_project_path.tar.gz |
_yaml.py: Move node_get_project_path to project.pyjennis/move_node_get_project_path
_yaml.node_get_project_path() is currently only used by Project
and by Plugin. This function has been moved to Project._get_path_from_node()
and no longers requires a project directory as argument.
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r-- | buildstream/plugin.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py index c21ae939e..f5daf31bf 100644 --- a/buildstream/plugin.py +++ b/buildstream/plugin.py @@ -420,10 +420,9 @@ class Plugin(): """ - return _yaml.node_get_project_path(node, key, - self.__project.directory, - check_is_file=check_is_file, - check_is_dir=check_is_dir) + return self.__project.get_path_from_node(node, key, + check_is_file=check_is_file, + check_is_dir=check_is_dir) def node_validate(self, node, valid_keys): """This should be used in :func:`~buildstream.plugin.Plugin.configure` |