X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fauxiliar%2Fpostprocess_html.py;h=538f79a7988d8142241fd8124e79db6c95b4370e;hb=f3b6285af7a9e414b12d2d61ada30aef695bd72f;hp=fd254b5a08411acf4abbb668dcd05b9c710d760a;hpb=f92a7cd52fc45a083bbd7bc54130d14b314d9a4b;p=lilypond.git diff --git a/python/auxiliar/postprocess_html.py b/python/auxiliar/postprocess_html.py index fd254b5a08..538f79a798 100644 --- a/python/auxiliar/postprocess_html.py +++ b/python/auxiliar/postprocess_html.py @@ -6,6 +6,7 @@ add footer, tweak links, add language selection menu. """ import re import os +import sys import time import operator @@ -37,19 +38,21 @@ header = r""" footer = ''' -''' +''' % sys.argv[0] web_footer = ''' -''' +''' % sys.argv[0] footer_name_version = _doc ('This page is for %(package_name)s-%(package_version)s (%(branch_str)s).') # ugh, must not have "_doc" in strings because it is naively replaced with "_" in hacked gettext process @@ -71,11 +74,12 @@ browser_language_url = "http://www.lilypond.org/website/misc/browser-language" LANGUAGES_TEMPLATE = '''

- %(language_available)s + + %%(language_available)s
- %(browser_language)s + %%(browser_language)s

-''' +''' % sys.argv[0] html_re = re.compile ('(.*?)(?:[.]([^/.]*))?[.]html$')