summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-07-31 12:45:57 +0100
committerTiago Gomes <tiago.avv@gmail.com>2018-08-02 11:24:43 +0000
commit385aa592c9c97e1a0a0a5035210d6c7358a158d4 (patch)
tree06763cc18b5bdcdd12dfaab9fc34eaae3da1811f /buildstream
parentc4c0bb1e04b2da032012b04c92b81d5080fdf7b4 (diff)
downloadbuildstream-385aa592c9c97e1a0a0a5035210d6c7358a158d4.tar.gz
project: validate project paths (local plugin paths)
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_project.py5
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()