mirror of https://github.com/tLDP/python-tldp
do not mkdir() if we are in --script mode
This commit is contained in:
parent
fc4c83307f
commit
98b19ac5ce
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue