aboutsummaryrefslogtreecommitdiff
path: root/gerberex
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-02-06 09:38:22 +0100
committerjaseg <git@jaseg.de>2021-02-06 09:38:38 +0100
commit3f9295b9d0c2142c46aa238836debdd472811899 (patch)
treeaee493576d4bb8a56d59f00e0d4bf3fbc1320c92 /gerberex
parentca23fbd9534ab3cba3fd7b032816766c1150ebf9 (diff)
downloadpcb-tools-extension-3f9295b9d0c2142c46aa238836debdd472811899.tar.gz
pcb-tools-extension-3f9295b9d0c2142c46aa238836debdd472811899.tar.bz2
pcb-tools-extension-3f9295b9d0c2142c46aa238836debdd472811899.zip
Fix support for comments in aperture definitions
Diffstat (limited to 'gerberex')
-rw-r--r--gerberex/am_expression.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gerberex/am_expression.py b/gerberex/am_expression.py
index 5400130..f43ba2e 100644
--- a/gerberex/am_expression.py
+++ b/gerberex/am_expression.py
@@ -49,6 +49,8 @@ class AMConstantExpression(AMExpression):
return self
def to_gerber(self, settings=None):
+ if isinstance(self._value, str):
+ return self._value
gerber = '%.6g' % self._value
return '%.6f' % self._value if 'e' in gerber else gerber