Find the tool's url in the package metadata.

This commit is contained in:
Andrew Hamilton 2016-11-19 17:24:01 +01:00
parent 1028f74de9
commit d2dcb4cf85
3 changed files with 19 additions and 6 deletions

View file

@ -9,10 +9,9 @@ import tools
def tool_markup(tool):
try:
return "[%s](%s)" % (tool.__name__, tool.url)
except AttributeError:
return tool.__name__
url = tools.url_of_tool(tool)
return (tool.__name__ if url is None else
"[%s](%s)" % (tool.__name__, url))
print("""\