(self, proposal)
return value
Do a bit of validation of the root_dir.
Do a bit of validation of the root_dir.
Do a bit of validation of the root_dir .
def _validate_root_dir(self, proposal):
        """Do a bit of validation of the root_dir."""
        value = proposal['value']
        if not os.path.isabs(value):
            # If we receive a non-absolute path, make it absolute.
            value = os.path.abspath(value)
        if not os.path.isdir(value):
            raise TraitError("%r is not a directory" % value)
        return value
def _validate_root_dir ( self , proposal ) : value = proposal [ 'value' ] if not os . path . isabs ( value ) : # If we receive a non-absolute path, make it absolute. value = os . path . abspath ( value ) if not os . path . isdir ( value ) : raise TraitError ( "%r is not a directory" % value ) return value