Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
tools ignore slashed part of tool name
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Mar 26, 2021
1 parent d89bb68 commit a99ca1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion avalon/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,14 @@ def environ(self, session):
"name": session["AVALON_ASSET"]
})
tools = self.find_tools(asset)
tools_attr.extend(tools)
# Forwards compatibility
modified_tools = []
for tool in tools:
parts = tool.split("/")
if len(parts) > 1:
parts.pop(0)
modified_tools.append("/".join(parts))
tools_attr.extend(modified_tools)

tools_env = acre.get_tools(tools_attr)
dyn_env = acre.compute(tools_env)
Expand Down

0 comments on commit a99ca1c

Please sign in to comment.