Remove Visual Studio project files if they exist.
()
| 67 | |
| 68 | |
| 69 | def cleanup_visual_studio_files() -> None: |
| 70 | """Remove Visual Studio project files if they exist.""" |
| 71 | tests_dir = Path("tests") |
| 72 | if tests_dir.exists(): |
| 73 | for pattern in ["*.vcxproj", "*.vcxproj.filters", "*.sln"]: |
| 74 | for file_path in tests_dir.glob(f"**/{pattern}"): |
| 75 | try: |
| 76 | file_path.unlink() |
| 77 | except KeyboardInterrupt: |
| 78 | _thread.interrupt_main() |
| 79 | raise |
| 80 | except Exception: |
| 81 | pass # Ignore errors |
| 82 | |
| 83 | |
| 84 | def cleanup_crash_dump_files() -> None: |