You can just use `CONFIGURATION.get_messages_dir(locale) / filename`, since `get_messages_dir` returns a `path` object.