Merge pull request #538 from oliv3r/fix/allow_outdir_to_exist
Simplify the target dir test
This commit is contained in:
commit
57fe22ff3f
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue