Skip to content
Snippets Groups Projects
Commit cbc0db16 authored by Jonathan Maw's avatar Jonathan Maw
Browse files

_stream.py: Fix ugly error when opening a workspace using a relative path

parent fd1c5c5a
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment