from pathlib import Path path = Path(__file__).parent with open(path / "event.jinja2", encoding="utf-8") as f: event_template = f.read() with open(path / "profile.jinja2", encoding="utf-8") as f: profile_template = f.read() __all__ = ("event_template", "profile_template")