import json
import sys
from pathlib import Path


repo = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(repo))

from src.utils.display import getSelectedDisplay


display = getSelectedDisplay()
(repo / '.bot-display.json').write_text(
    json.dumps(display, ensure_ascii=False), encoding='utf-8',
)
print(json.dumps(display, ensure_ascii=False))
