fix: correct template path resolution in render function to use absolute project root
This commit is contained in:
parent
a79a2df8de
commit
6ba6f0ed5d
@ -47,7 +47,7 @@ class BaseApplication(RPCApplication):
|
||||
self.template_path = (
|
||||
template_path
|
||||
and template_path
|
||||
or pathlib.Path(__file__).parent / "templates"
|
||||
or pathlib.Path(__file__).parent.joinpath("templates")
|
||||
)
|
||||
self.agents = {}
|
||||
super().__init__(middlewares=middlewares, *args, **kwargs)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user