19 lines
452 B
Python
19 lines
452 B
Python
#!/usr/bin/env python3
|
|||
|
|
"""Launcher so the bot can be started from the project root.
|
||
|
|
|
||
|
|
python bots/run_bot.py [--once|--dry-run|--check]
|
||
|
|
"""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
BOTS_DIR = Path(__file__).resolve().parent
|
||
|
|
if str(BOTS_DIR) not in sys.path:
|
||
|
|
sys.path.insert(0, str(BOTS_DIR))
|
||
|
|
|
||
|
|
from meetings_telegram_bot.__main__ import main # noqa: E402
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
raise SystemExit(main())
|