diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-11-28 15:44:11 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-11-28 15:44:11 +0100 |
commit | 90255c8d0d69f2843c72c41faab57c3905fbf906 (patch) | |
tree | e250242ff720448ba39e6afc8f8a9e6461adcd13 /gui/run.py | |
parent | d952405886dab44f12c1de53b57912b34320c7c8 (diff) | |
download | dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.tar.gz dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.tar.bz2 dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.zip |
Add plots to predistortion page
Diffstat (limited to 'gui/run.py')
-rwxr-xr-x | gui/run.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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/") |