summaryrefslogtreecommitdiff
path: root/gerberex/common.py
diff options
context:
space:
mode:
authorHiroshi Murayama <opiopan@gmail.com>2019-09-09 09:07:38 +0900
committerHiroshi Murayama <opiopan@gmail.com>2019-09-09 09:15:01 +0900
commit2b1c751ff76ebd6901633235ee694cc93dabce81 (patch)
treeba9c53c399a0daa763e4522a85ceb93f038d40fe /gerberex/common.py
parent13ab9db6e7571f3d0fcb406bfe6795eea9ce4e1c (diff)
downloadgerbonara-2b1c751ff76ebd6901633235ee694cc93dabce81.tar.gz
gerbonara-2b1c751ff76ebd6901633235ee694cc93dabce81.tar.bz2
gerbonara-2b1c751ff76ebd6901633235ee694cc93dabce81.zip
improve compatibility with RS-274x specification:
- can merge multiple files having different file scope modifier, such as AS, MI, OF, SF, and IR - support modal coordinate notation
Diffstat (limited to 'gerberex/common.py')
-rw-r--r--gerberex/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerberex/common.py b/gerberex/common.py
index 47bc6b3..6e8a832 100644
--- a/gerberex/common.py
+++ b/gerberex/common.py
@@ -25,7 +25,7 @@ def loads(data, filename=None, format=None):
fmt = detect_file_format(data)
if fmt == 'rs274x':
- file = gerber.rs274x.loads(data, filename=filename)
+ file = gerberex.rs274x.loads(data, filename=filename)
return gerberex.rs274x.GerberFile.from_gerber_file(file)
elif fmt == 'excellon':
return gerberex.excellon.loads(data, filename=filename, format=format)