diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-12-05 17:13:54 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-12-11 16:15:19 +0000 |
commit | e564251b3a689c7dac74c754440f0dd4bcd6ca97 (patch) | |
tree | 81a43b434356ae7e459beadf4e0db6bf0cdd818b | |
parent | 4219a6b4a3b7c025f3ac74eea79c8333502bcbd8 (diff) | |
download | buildstream-e564251b3a689c7dac74c754440f0dd4bcd6ca97.tar.gz |
_stream.py: Fix ugly error when opening a workspace using a relative path
-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. |