Commit 5c85172f authored by Romain Casati's avatar Romain Casati

Fix in www generation.

parent b648c642
\ No newline at end of file
\ No newline at end of file
......@@ -66,9 +66,9 @@ def galerie(*args):
def url(file, aux):
url = Path("examples") / file
url = str(Path("examples") / file)
domain = 'console' if file.endswith('.py') else 'notebook'
url = "https://{}{}".format(domain, urllib.parse.quote(url))
url = f"https://{domain}{urllib.parse.quote(url)}"
if aux is not None:
url += '&aux={}'.format(urllib.parse.quote(aux))
return url
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment