X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/256032f4d1c6be9119fff7b3b2acdce995dcc9b0..fb28e394a2670944ee36f7c386cbc884d9207daa:/bin/pagegen.py diff --git a/bin/pagegen.py b/bin/pagegen.py index 7597e2f..7423a2b 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" @@ -62,20 +62,15 @@ def producehtml(name, debug): div = ui.get("div", "") customjs = ui.get("customjs", "") - if debug: - customjs = """ -""" + customjs - return """%s %s (qwebirc) + -%s%s +%s%s %s