def _validate_webroot(webroot_path):
 if (not os.path.isdir(webroot_path)):
  raise errors.PluginError((webroot_path + ' does not exist or is not a directory'))
 return os.path.abspath(webroot_path)

def _validate_webroot ( webroot_path ) : if ( not os . path . isdir ( webroot_path ) ) : raise errors . PluginError ( ( webroot_path + ' does not exist or is not a directory' ) ) return os . path . abspath ( webroot_path )
validates and returns the absolute path of webroot_path .