'if needed, create the directory for file output'

def preModule(self):

    if (self.rip and (not os.path.exists(self.outdir))):
        try:
            os.makedirs(self.outdir)
        except OSError:
            self.error(("Could    not    create    directory    '%s'.    Files    will    not    be    dumped." % self.outdir))
            self.rip = False
