kopia lustrzana https://gitlab.com/gerbolyze/gerbonara
Fixing more relative import statements
rodzic
7ace94b023
commit
e6fa61c82b
|
@ -30,9 +30,9 @@ def read(filename):
|
|||
CncFile object representing the file, either GerberFile or
|
||||
ExcellonFile. Returns None if file is not an Excellon or Gerber file.
|
||||
"""
|
||||
import rs274x
|
||||
import excellon
|
||||
from utils import detect_file_format
|
||||
from . import rs274x
|
||||
from . import excellon
|
||||
from .utils import detect_file_format
|
||||
fmt = detect_file_format(filename)
|
||||
if fmt == 'rs274x':
|
||||
return rs274x.read(filename)
|
||||
|
|
|
@ -24,5 +24,5 @@ SVG is the only supported format.
|
|||
"""
|
||||
|
||||
|
||||
from svgwrite_backend import GerberSvgContext
|
||||
from cairo_backend import GerberCairoContext
|
||||
from .svgwrite_backend import GerberSvgContext
|
||||
from .cairo_backend import GerberCairoContext
|
||||
|
|
Ładowanie…
Reference in New Issue