(experiment, knob)
Adds an experiment to the ManuallyEnabledExperiments knob.

  Args:
    experiment: str, the experiment name to add.
    knob: str, the manual knob to modify
  Raises:
    PlistError: if the plist can't be modified.
Adds an experiment to the ManuallyEnabledExperiments knob.
Adds an experiment to the ManuallyEnabledExperiments knob .
def AddExperimentToManualList(experiment, knob):
  """Adds an experiment to the ManuallyEnabledExperiments knob.

  Args:
    experiment: str, the experiment name to add.
    knob: str, the manual knob to modify
  Raises:
    PlistError: if the plist can't be modified.
  """
  knobs = KNOBS.Knobs()
  current_value = knobs.get(knob, [])
  if knob in knobs and experiment in current_value:
    Output('%s is already in %s.' % (experiment, knob))
  else:
    current_value.append(experiment)
    Output('New value of %s is %s' % (knob, ','.join(current_value)))
    if not gmacpyutil.SetMachineInfoForKey(knob, ','.join(current_value)):
      raise PlistError('Problem writing to plist.')
def AddExperimentToManualList ( experiment , knob ) : knobs = KNOBS . Knobs ( ) current_value = knobs . get ( knob , [ ] ) if knob in knobs and experiment in current_value : Output ( '%s is already in %s.' % ( experiment , knob ) ) else : current_value . append ( experiment ) Output ( 'New value of %s is %s' % ( knob , ',' . join ( current_value ) ) ) if not gmacpyutil . SetMachineInfoForKey ( knob , ',' . join ( current_value ) ) : raise PlistError ( 'Problem writing to plist.' )