Before werkzeug 2.0, the `path` attribute was a cached property, now it's a regular attribute. With this commit, both cases are handled. Part-of: odoo/odoo#98081