parameters: (self, proposal)
return_statement: return value
docstring: Do a bit of validation of the root_dir.
docstring_summary: Do a bit of validation of the root_dir.
docstring_tokens: Do a bit of validation of the root_dir .
function: 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
function_tokens: 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