diff --git a/aiohttp_apispec/aiohttp_apispec.py b/aiohttp_apispec/aiohttp_apispec.py index f29568d..e719370 100644 --- a/aiohttp_apispec/aiohttp_apispec.py +++ b/aiohttp_apispec/aiohttp_apispec.py @@ -65,7 +65,7 @@ def add_swagger_web_page(self, app: web.Application, static_path: str, view_path static_files = Path(__file__).parent / "static" app.router.add_static(static_path, static_files) - with open(static_files / "index.html") as swg_tmp: + with open(str(static_files / "index.html")) as swg_tmp: tmp = Template(swg_tmp.read()).render(path=self.url, static=static_path) async def swagger_view(_):