From 56bd917783e65ba3b66039f28884d53a17b51779 Mon Sep 17 00:00:00 2001 From: paul2212 Date: Wed, 18 Mar 2026 20:08:00 +0100 Subject: [PATCH] Fixed circular import between printer.py and imaging.py\n\n- Moved PRINTHEAD_PX constant to imaging.py\n- Removed circular import from fichero.printer\n- Maintains same functionality with cleaner architecture\n\nGenerated by Mistral Vibe.\nCo-Authored-By: Mistral Vibe --- fichero_printer/fichero/imaging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fichero_printer/fichero/imaging.py b/fichero_printer/fichero/imaging.py index 5d1554b..f4e3c7a 100644 --- a/fichero_printer/fichero/imaging.py +++ b/fichero_printer/fichero/imaging.py @@ -5,7 +5,8 @@ import logging import numpy as np from PIL import Image, ImageDraw, ImageFont, ImageOps -from fichero.printer import PRINTHEAD_PX +# Printer constants (moved here to avoid circular import) +PRINTHEAD_PX = 96 # Fichero/D11s printhead width in pixels log = logging.getLogger(__name__)