From 6aa6a6637f5ed29d92d8f5aba256e821b1832924 Mon Sep 17 00:00:00 2001 From: Holger Weber Date: Fri, 20 Mar 2026 00:10:49 +0100 Subject: [PATCH] Added search for windows COM ports --- inkscape/{linux => }/patch/ebb_serial.py | 5 +++++ inkscape/{linux => }/patch/eggbot.py | 0 2 files changed, 5 insertions(+) rename inkscape/{linux => }/patch/ebb_serial.py (98%) rename inkscape/{linux => }/patch/eggbot.py (100%) diff --git a/inkscape/linux/patch/ebb_serial.py b/inkscape/patch/ebb_serial.py similarity index 98% rename from inkscape/linux/patch/ebb_serial.py rename to inkscape/patch/ebb_serial.py index 64082ac..074576a 100644 --- a/inkscape/linux/patch/ebb_serial.py +++ b/inkscape/patch/ebb_serial.py @@ -64,6 +64,9 @@ def findPort(): if port[0].startswith("/dev/ttyUSB"): ebb_port = port[0] # Success; EBB found by name match. break # stop searching-- we are done. + elif port[0].startswith("COM"): + ebb_port = port[0] # Success; EBB found by name match. + break # stop searching-- we are done. for port in com_ports_list: if port[1].startswith("EiBotBoard"): ebb_port = port[0] # Success; EBB found by name match. @@ -215,6 +218,8 @@ def listEBBports(): port_has_ebb = False if port[0].startswith("/dev/ttyUSB"): port_has_ebb = True + elif port[0].startswith("COM"): + port_has_ebb = True elif port[1].startswith("EiBotBoard"): port_has_ebb = True elif port[2].startswith("USB VID:PID=04D8:FD92"): diff --git a/inkscape/linux/patch/eggbot.py b/inkscape/patch/eggbot.py similarity index 100% rename from inkscape/linux/patch/eggbot.py rename to inkscape/patch/eggbot.py