mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
use pathlib
This commit is contained in:
parent
ba3760e770
commit
fa51c2e6e9
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user