diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 3a711eef..4781d170 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -362,8 +362,8 @@ def get_output_dir(o_dir, obj, dry=False): outdir = os.path.abspath(obj.expand_dirname(os.path.join(GS.out_dir, o_dir))) # Create directory if needed logger.debug("Output destination: {}".format(outdir)) - if not dry and not os.path.exists(outdir): - os.makedirs(outdir) + if not dry: + os.makedirs(outdir, exist_ok=True) return outdir