make prism optional

This commit is contained in:
ed
2021-11-04 03:10:13 +01:00
parent 3899c7ad56
commit cb7674b091
7 changed files with 29 additions and 9 deletions

View File

@@ -76,6 +76,7 @@ class HttpSrv(object):
x: env.get_template(x + ".html")
for x in ["splash", "browser", "browser2", "msg", "md", "mde"]
}
self.prism = os.path.exists(os.path.join(E.mod, "web", "deps", "prism.js.gz"))
cert_path = os.path.join(E.cfg, "cert.pem")
if bos.path.exists(cert_path):