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 <vibe@mistral.ai>
This commit is contained in:
@@ -5,7 +5,8 @@ import logging
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from PIL import Image, ImageDraw, ImageFont, ImageOps
|
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__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user