use pathlib

This commit is contained in:
Pascal Vizeli 2017-05-19 22:51:46 +02:00 committed by GitHub
parent ba3760e770
commit fa51c2e6e9

View File

@ -102,7 +102,7 @@ class RestAPI(object):
panel_dir = Path(__file__).parents[1].joinpath('panel') panel_dir = Path(__file__).parents[1].joinpath('panel')
self.webapp.router.register_resource( self.webapp.router.register_resource(
web.StaticResource('/panel', str(panel_dir))) web.StaticResource('/panel', panel_dir))
async def start(self): async def start(self):
"""Run rest api webserver.""" """Run rest api webserver."""