summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
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()