def relworkdir(self):
        """Return a relative version of the workdir"""
        if getattr(self, "workdir", None) is None:
            return None
        try:
            return os.path.relpath(self.workdir)
        except OSError:
            # current working directory may not be defined!
            return self.workdir
def relworkdir ( self ) : if getattr ( self , "workdir" , None ) is None : return None try : return os . path . relpath ( self . workdir ) except OSError : return self . workdir
Return a relative version of the workdir