]> Shamusworld >> Repos - ardour-manual/blob - servit.py
Correct a double anchor name for the PDF
[ardour-manual] / servit.py
1 #!/usr/bin/python3
2 #
3 # Script to locally host the manual as a simple http site
4
5 import os
6 import cherrypy
7
8 PATH = os.path.abspath(os.path.dirname(__file__))
9
10 class Root(object):
11         pass
12
13 cherrypy.tree.mount(Root(), '/', config={
14         '/': {
15                 'tools.staticdir.on': True,
16                 'tools.staticdir.dir': os.path.join(PATH, 'website'),
17                 'tools.staticdir.index': 'index.html',
18         },
19 })
20
21 cherrypy.engine.start()
22 cherrypy.engine.block()