def _ModifyCSPSearchPathForPath(action, node, path):

  command = [_DSCL, path, '-%s' % action, '/', 'CSPSearchPath', node]
  (unused_stdout, stderr, returncode) = gmacpyutil.RunProcess(command)
  if returncode:
    raise DSException('Unable to perform %s on CSPSearchPath '
                      'for node: %s on path: %s '
                      'Error: %s '% (action, node, path, stderr))
  return True
Modifies the search nodes for a given path.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/ds.py/_ModifyCSPSearchPathForPath