Allow files to be read from strings per #37
Adds a loads() method to the top level module which generates a GerberFile or ExcellonFile from a string
This commit is contained in:
parent
b81c9d4bf9
commit
dd63b169f1
10 changed files with 140 additions and 53 deletions
|
|
@ -30,9 +30,6 @@ from gerber.render import GerberCairoContext
|
|||
GERBER_FOLDER = os.path.abspath(os.path.join(os.path.dirname(__file__), 'gerbers'))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Open the gerber files
|
||||
copper = read(os.path.join(GERBER_FOLDER, 'copper.GTL'))
|
||||
mask = read(os.path.join(GERBER_FOLDER, 'soldermask.GTS'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue