#!/usr/bin/env python3 import sys from pathlib import Path PROJECT_ROOT = Path(__file__).parent.parent DATA_DIR = PROJECT_ROOT / "automation" / "data" topics_file = DATA_DIR / "sustainability_topics.json" print(f"Project root: {PROJECT_ROOT}") print(f"Looking for: {topics_file}") print(f"Exists: {topics_file.exists()}") if topics_file.exists(): import json with open(topics_file, 'r', encoding='utf-8') as f: topics = json.load(f) print(f"Loaded {len(topics)} topics") if topics: print("First topic:", topics[0]['title'], f"score={topics[0]['priority_score']}, status={topics[0]['status']}")