import py_compile import sys try: py_compile.compile('/app/competitor-analysis-app/competitor_analysis_orchestrator.py', doraise=True) print("Syntax OK") except py_compile.PyCompileError as e: print(f"Syntax Error: {e}") sys.exit(1) except Exception as e: print(f"General Error: {e}") sys.exit(1)