def __init__(self, config, rootdir=None): self.config = config self.rootdir = py.path.local(rootdir) or py.path.local()