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

loader.py: Load junction from workspace if one's open

parent 352f4ad9
No related branches found
No related tags found
Loading
......@@ -540,7 +540,12 @@ class Loader():
"Subproject has no ref for junction: {}".format(filename),
detail=detail)
if len(sources) == 1 and sources[0]._get_local_path():
workspace = element._get_workspace()
if workspace:
# If a workspace is open, load it from there instead
basedir = workspace.get_absolute_path()
tempdir = None
elif len(sources) == 1 and sources[0]._get_local_path():
# Optimization for junctions with a single local source
basedir = sources[0]._get_local_path()
tempdir = None
......
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