mirror of
https://gitverse.ru/kpa39l/chronicle.nixg.ru.git
synced 2026-09-29 18:05:07 +00:00
19 lines
374 B
Python
19 lines
374 B
Python
#!/usr/bin/env python
|
|
"""Runner script for Telegram Archiver CLI."""
|
|
|
|
import sys
|
|
import os
|
|
from pathlib import Path
|
|
|
|
# Add project root to path
|
|
project_root = Path(__file__).parent
|
|
sys.path.insert(0, str(project_root))
|
|
|
|
# Set working directory to project root for .env loading
|
|
os.chdir(project_root)
|
|
|
|
from app.main import cli_main
|
|
|
|
if __name__ == "__main__":
|
|
cli_main()
|