"""Quick syntax check for build files.""" import ast, sys files = [ r'c:\Users\Dell-PC\Desktop\Kiwy-Signage\windows\run_win.py', r'c:\Users\Dell-PC\Desktop\Kiwy-Signage\windows\pyi_runtime_hook.py', ] for f in files: try: with open(f, encoding='utf-8') as fh: ast.parse(fh.read()) print(f"OK: {f}") except SyntaxError as e: print(f"SYNTAX ERROR in {f}: {e}") sys.exit(1) print("All files OK")