Skip to content
Snippets Groups Projects
Commit 37b7f0a9 authored by Jim MacArthur's avatar Jim MacArthur Committed by Martin Blanchard
Browse files

element.py: Get the updated virtual directory after running

Executing run() on a sandbox can now replace the virtual directory,
since remote execution returns a potentially different directory rather
than an update to the existing one. Call get_virtual_directory() again
after running to accout for this.

#454
parent 9696cad9
No related branches found
No related tags found
No related merge requests found
......@@ -1576,6 +1576,8 @@ class Element(Plugin):
finally:
if collect is not None:
try:
# Sandbox will probably have replaced its virtual directory, so get it again
sandbox_vroot = sandbox.get_virtual_directory()
collectvdir = sandbox_vroot.descend(collect.lstrip(os.sep).split(os.sep))
except VirtualDirectoryError:
# No collect directory existed
......
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