#!/usr/bin/env python3 """ Test script to verify path fixes for AI video generation """ import os import sys import json def test_environment(): """Test the environment and paths""" result = { "status": "success", "current_directory": os.getcwd(), "python_executable": sys.executable, "python_version": sys.version, "script_path": __file__, "python_core_exists": os.path.exists("python_core"), "ai_video_module_exists": os.path.exists("python_core/ai_video"), "video_generator_exists": os.path.exists("python_core/ai_video/video_generator.py") } # Test module import try: sys.path.append('python_core') from ai_video import VideoGenerator result["module_import"] = "success" result["module_import_error"] = None except Exception as e: result["module_import"] = "failed" result["module_import_error"] = str(e) return result if __name__ == "__main__": result = test_environment() print(json.dumps(result, indent=2, ensure_ascii=False))