diff options
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r-- | buildstream/_project.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index 1c30fb9bb..3ac562836 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -16,6 +16,7 @@ # # Authors: # Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> +# Tiago Gomes <tiago.gomes@codethink.co.uk> import os import multiprocessing # for cpu_count() @@ -291,7 +292,8 @@ class Project(): self.element_path = os.path.join( self.directory, - _yaml.node_get(config, str, 'element-path') + _yaml.node_get_project_path(config, 'element-path', self.directory, + check_is_dir=True) ) # Load project options @@ -500,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() |