Hi Dave,
We are not joining template path with os.path.join because we are passing prefix paths in render_template(..) at many places,
we are passing them as below,
Some of examples,
render_template(
"exclusion_constraint/js/exclusion_constraint.js",
_=_
),
recovery_check_sql = render_template(
"connect/sql/#{0}#/check_recovery.sql".format(postgres_version))
sql = render_template(
"/servers/sql/#{0}#/stats.sql".format(manager.version),
conn=conn, _=gettext
)
sql = render_template(
"/".join([self.template_path, 'create.sql']),
data=data, conn=self.conn
)
def csssnippets(self):
"""
Returns a snippet of css to include in the page
"""
snippets = [render_template("css/servers.css")]
So again it will conflict if use os.path.join, To make it consistent with render_template(...) and VersionedTemplateLoader(..) class we opt'd for this mechanism.