Fixed problem when the excellon drill target directory didn't exist (now created)

This commit is contained in:
Salvador E. Tropea 2020-04-18 15:56:53 -03:00
parent 41c0c726cd
commit 540a0b080d
1 changed files with 3 additions and 0 deletions

View File

@ -388,6 +388,9 @@ class Plotter(object):
if gen_drill:
logger.debug("Generating drill files in "+outdir)
if not os.path.exists(outdir):
os.makedirs(outdir)
if gen_map:
drill_writer.SetMapFileFormat(to.map_options.type)
logger.debug("Generating drill map type {} in {}"