mirror of https://github.com/tLDP/python-tldp
flipping the stem/dirname arguments
This commit is contained in:
parent
2b0b241019
commit
2bcb55e2a0
|
@ -14,9 +14,9 @@ class OutputNamingConvention(object):
|
||||||
expected = ['name_txt', 'name_pdf', 'name_htmls', 'name_html',
|
expected = ['name_txt', 'name_pdf', 'name_htmls', 'name_html',
|
||||||
'name_index']
|
'name_index']
|
||||||
|
|
||||||
def __init__(self, stem, dirname):
|
def __init__(self, dirname, stem):
|
||||||
self.stem = stem
|
|
||||||
self.dirname = dirname
|
self.dirname = dirname
|
||||||
|
self.stem = stem
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name_txt(self):
|
def name_txt(self):
|
||||||
|
@ -56,7 +56,7 @@ class OutputDirectory(OutputNamingConvention):
|
||||||
os.mkdir(dirname)
|
os.mkdir(dirname)
|
||||||
self.statinfo = statfiles(self.dirname, relative=self.dirname)
|
self.statinfo = statfiles(self.dirname, relative=self.dirname)
|
||||||
self.status = 'output'
|
self.status = 'output'
|
||||||
super(OutputDirectory, self).__init__(self.stem, self.dirname)
|
super(OutputDirectory, self).__init__(self.dirname, self.stem)
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
logger.info("%s cleaning directory %s.", self.stem, self.dirname)
|
logger.info("%s cleaning directory %s.", self.stem, self.dirname)
|
||||||
|
|
Loading…
Reference in New Issue