Find the tool's url in the package metadata.
This commit is contained in:
parent
1028f74de9
commit
d2dcb4cf85
3 changed files with 19 additions and 6 deletions
|
|
@ -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("""\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue