From 540a0b080d8c09e9634692bbb65ebf0379511f03 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sat, 18 Apr 2020 15:56:53 -0300 Subject: [PATCH] Fixed problem when the excellon drill target directory didn't exist (now created) --- kiplot/kiplot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiplot/kiplot.py b/kiplot/kiplot.py index 314fe177..3939d46f 100644 --- a/kiplot/kiplot.py +++ b/kiplot/kiplot.py @@ -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 {}"