aboutsummaryrefslogtreecommitdiffstats
path: root/gui/run.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-28 15:44:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-28 15:44:11 +0100
commit90255c8d0d69f2843c72c41faab57c3905fbf906 (patch)
treee250242ff720448ba39e6afc8f8a9e6461adcd13 /gui/run.py
parentd952405886dab44f12c1de53b57912b34320c7c8 (diff)
downloaddabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.tar.gz
dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.tar.bz2
dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.zip
Add plots to predistortion page
Diffstat (limited to 'gui/run.py')
-rwxr-xr-xgui/run.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/gui/run.py b/gui/run.py
index 7162d70..b83dd14 100755
--- a/gui/run.py
+++ b/gui/run.py
@@ -75,9 +75,9 @@ class Root:
return tmpl.render(tab='predistortion', js=js, is_login=False)
class DPDRunner:
- def __init__(self):
+ def __init__(self, static_dir):
self.web_end, self.dpd_end = Pipe()
- self.dpd = dpd.DPD()
+ self.dpd = dpd.DPD(static_dir)
def __enter__(self):
self.p = Process(target=self._handle_messages)
@@ -134,10 +134,14 @@ if __name__ == '__main__':
staticdir = os.path.realpath(config.config['global']['static_directory'])
- with DPDRunner() as dpd_pipe:
+ with DPDRunner(os.path.join(staticdir, "dpd")) as dpd_pipe:
cherrypy.tree.mount(
Root(cli_args.config, dpd_pipe), config={
'/': { },
+ '/dpd': {
+ 'tools.staticdir.on': True,
+ 'tools.staticdir.dir': os.path.join(staticdir, u"dpd/")
+ },
'/css': {
'tools.staticdir.on': True,
'tools.staticdir.dir': os.path.join(staticdir, u"css/")