def METHOD_NAME(self, inputWorkdir):
    """
    If workdir is sane, use it
    """
    if inputWorkdir is None:
        self.workdir = None
        return
    if not os.path.isdir(inputWorkdir):
        try:
            os.mkdir(inputWorkdir)
        except Exception as ex:
            print('Caught exception %s in creating workdir %s' % (str(ex), inputWorkdir))
            raise Exception(ex)
    self.workdir = inputWorkdir
    return