diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-07-31 12:45:57 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-08-02 12:33:17 +0100 |
commit | 0225ee147953cef0738b811ef5e9bf919e33c683 (patch) | |
tree | f44900f47039790c4a7a36cbfbdb178763043d2e /buildstream | |
parent | 99ca4b77a7cba97d695b2183737f77d6ff33d4b7 (diff) | |
download | buildstream-0225ee147953cef0738b811ef5e9bf919e33c683.tar.gz |
project: validate project paths (local plugin paths)
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_project.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index b761d650f..3ac562836 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -502,8 +502,11 @@ class Project(): if group in origin_dict: del origin_dict[group] if origin_dict['origin'] == 'local': + path = _yaml.node_get_project_path(origin, 'path', + self.directory, + check_is_dir=True) # paths are passed in relative to the project, but must be absolute - origin_dict['path'] = os.path.join(self.directory, origin_dict['path']) + origin_dict['path'] = os.path.join(self.directory, path) destination.append(origin_dict) # _ensure_project_dir() |