12 lines
270 B
Python
12 lines
270 B
Python
from pathlib import Path
|
|
|
|
_LOGO_PATH = Path(__file__).resolve().parent / 'templates' / 'static' / 'exa-logo.png'
|
|
|
|
EXA_LOGO_CID = 'exa-logo'
|
|
|
|
|
|
def get_exa_logo_png() -> bytes | None:
|
|
if not _LOGO_PATH.is_file():
|
|
return None
|
|
return _LOGO_PATH.read_bytes()
|