Refactor print statements for consistency and clarity across multiple files; remove unnecessary imports and improve code readability in pin_locator.py, routing.py, symbol_creator.py, wire_manager.py, factory.py, ipc_backend.py, kicad_interface.py, resource_definitions.py, test_ipc_backend.py, kicad_process.py, platform_helper.py, test_platform_helper.py. Add French README for KiCAD MCP Server with detailed features, installation instructions, and usage examples.
This commit is contained in:
@@ -6,7 +6,6 @@ Auto-detects available backends and provides fallback mechanism.
|
||||
import os
|
||||
import logging
|
||||
from typing import Optional
|
||||
from pathlib import Path
|
||||
|
||||
from kicad_api.base import KiCADBackend, APINotAvailableError
|
||||
|
||||
|
||||
@@ -582,7 +582,7 @@ class IPCBoardAPI(BoardAPI):
|
||||
|
||||
# Get the pcbnew board instance
|
||||
# We need to get the actual board file path
|
||||
project = board.get_project()
|
||||
board.get_project()
|
||||
board_path = None
|
||||
|
||||
# Try to get the board path from kipy
|
||||
@@ -1089,7 +1089,7 @@ class IPCBoardAPI(BoardAPI):
|
||||
"""
|
||||
try:
|
||||
from kipy.board_types import Zone, ZoneFillMode, ZoneType
|
||||
from kipy.geometry import PolyLine, PolyLineNode, Vector2
|
||||
from kipy.geometry import PolyLine, PolyLineNode
|
||||
from kipy.util.units import from_mm
|
||||
from kipy.proto.board.board_types_pb2 import BoardLayer
|
||||
|
||||
@@ -1174,7 +1174,6 @@ class IPCBoardAPI(BoardAPI):
|
||||
def get_zones(self) -> List[Dict[str, Any]]:
|
||||
"""Get all zones on the board."""
|
||||
try:
|
||||
from kipy.util.units import to_mm
|
||||
|
||||
board = self._get_board()
|
||||
zones = board.get_zones()
|
||||
|
||||
Reference in New Issue
Block a user