diff options
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r-- | buildstream/_stream.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py index 6d4af1e79..85f77e281 100644 --- a/buildstream/_stream.py +++ b/buildstream/_stream.py @@ -544,7 +544,8 @@ class Stream(): if len(elements) != 1: raise StreamError("Exactly one element can be given if --directory is used", reason='directory-with-multiple-elements') - expanded_directories = [custom_dir, ] + directory = os.path.abspath(custom_dir) + expanded_directories = [directory, ] else: # If this fails it is a bug in what ever calls this, usually cli.py and so can not be tested for via the # run bst test mechanism. |