X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/42092e007417a902ae7c52e28e4b7699fb9ef4bd..31cf69da711d788e330a44d20e29ce901615d13c:/bin/pagegen.py diff --git a/bin/pagegen.py b/bin/pagegen.py index ae156e7..a4b9f5d 100755 --- a/bin/pagegen.py +++ b/bin/pagegen.py @@ -27,7 +27,7 @@ def csslist(name, debug, gen=False): def _gethgid(): try: - p = subprocess.Popen(["hg", "id"], stdout=subprocess.PIPE) + p = subprocess.Popen(["hg", "id"], stdout=subprocess.PIPE, shell=os.name == "nt") except Exception, e: if hasattr(e, "errno") and e.errno == 2: raise HGException, "unable to execute" @@ -56,6 +56,9 @@ def producehtml(name, debug): csshtml = "\n".join(" " % (config.STATIC_BASE_URL, x) for x in css) jshtml = "\n".join(" " % (config.STATIC_BASE_URL, x) for x in js) + if hasattr(config, "ANALYTICS_HTML"): + jshtml+="\n" + config.ANALYTICS_HTML + div = ui.get("div", "") customjs = ui.get("customjs", "") @@ -65,7 +68,7 @@ def producehtml(name, debug): %s (qwebirc) - + %s%s %s