11 lines
292 B
Python
11 lines
292 B
Python
# this file is a hack to allow loading exampledata when running locally
|
|
import json
|
|
from pathlib import Path
|
|
HERE = Path(__file__).parent
|
|
|
|
with (HERE / "example.json").open() as f:
|
|
CARD_XPATHS_ENTRIES = json.load(f)
|
|
|
|
with (HERE / "card.html.j2").open() as f:
|
|
CARD_TEMPLATE = f.read()
|