do not mkdir() if we are in --script mode

This commit is contained in:
Martin A. Brown 2016-03-07 10:01:42 -08:00
parent fc4c83307f
commit 98b19ac5ce
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,9 @@ class OutputDirectory(OutputNamingConvention):
logger.debug("%s removing dir %s.", self.stem, self.dirname)
shutil.rmtree(self.dirname)
def hook_build_prepare(self):
def hook_build_prepare(self, config):
if config.script:
return True
self.clean()
for d in (self.dirname, self.logdir):
if not os.path.isdir(d):