summaryrefslogtreecommitdiff
path: root/gerber/excellon.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-xgerber/excellon.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py
index 0f70de7..f994b67 100755
--- a/gerber/excellon.py
+++ b/gerber/excellon.py
@@ -219,6 +219,9 @@ class ExcellonParser(object):
with open(filename, 'r') as f:
for line in f:
self._parse(line.strip())
+
+ for stmt in self.statements:
+ stmt.units = self.units
return ExcellonFile(self.statements, self.tools, self.hits,
self._settings(), filename)