diff options
Diffstat (limited to 'gerbonara/gerber/utils.py')
-rw-r--r-- | gerbonara/gerber/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbonara/gerber/utils.py b/gerbonara/gerber/utils.py index d1045ad..30b03c9 100644 --- a/gerbonara/gerber/utils.py +++ b/gerbonara/gerber/utils.py @@ -24,6 +24,7 @@ files. """ import os +import re from enum import Enum from math import radians, sin, cos, sqrt, atan2, pi @@ -41,7 +42,9 @@ class RegexMatcher: def handle(self, inst, line): for regex, handler in self.mapping.items(): if (match := re.fullmatch(regex, line)): - handler(match) + #print(' handler', handler.__name__) + handler(inst, match) + break class LengthUnit: def __init__(self, name, shorthand, this_in_mm): |