flipping the stem/dirname arguments

This commit is contained in:
Martin A. Brown 2016-02-17 13:50:06 -08:00
parent 2b0b241019
commit 2bcb55e2a0
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ class OutputNamingConvention(object):
expected = ['name_txt', 'name_pdf', 'name_htmls', 'name_html',
'name_index']
def __init__(self, stem, dirname):
self.stem = stem
def __init__(self, dirname, stem):
self.dirname = dirname
self.stem = stem
@property
def name_txt(self):
@ -56,7 +56,7 @@ class OutputDirectory(OutputNamingConvention):
os.mkdir(dirname)
self.statinfo = statfiles(self.dirname, relative=self.dirname)
self.status = 'output'
super(OutputDirectory, self).__init__(self.stem, self.dirname)
super(OutputDirectory, self).__init__(self.dirname, self.stem)
def clean(self):
logger.info("%s cleaning directory %s.", self.stem, self.dirname)