mirror of https://github.com/tLDP/python-tldp
starting to wear the belt and suspenders
This commit is contained in:
parent
82a0fce575
commit
5e05b0f30d
|
@ -27,9 +27,10 @@ class SignatureChecker(object):
|
||||||
class BaseDoctype(object):
|
class BaseDoctype(object):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.source = kwargs.get('source')
|
self.source = kwargs.get('source', None)
|
||||||
self.output = kwargs.get('output')
|
self.output = kwargs.get('output', None)
|
||||||
self.platform = kwargs.get('platform')
|
self.platform = kwargs.get('platform', None)
|
||||||
|
assert None is not in (self.source, self.output, self.platform)
|
||||||
self.logdir = os.path.join(self.output.dirname, 'logs')
|
self.logdir = os.path.join(self.output.dirname, 'logs')
|
||||||
if os.path.exists(self.logdir):
|
if os.path.exists(self.logdir):
|
||||||
logger.warning("Found existing logs directory: %s", self.logdir)
|
logger.warning("Found existing logs directory: %s", self.logdir)
|
||||||
|
|
Loading…
Reference in New Issue