(self, path, value)
Sets the path value for a given path.
Sets the path value for a given path.
Sets the path value for a given path .
def SetPathValue(self, path, value):
    """Sets the path value for a given path."""
    base = os.path.basename(path)
    if not base:
      raise SysconfigError('Updating %s not permitted.' % path)
    tree = os.path.dirname(path)
    settings = SCPreferencesPathGetValue(self.session, tree)
    if not settings:
      settings = NSMutableDictionary.alloc().init()
    settings[base] = value
    SCPreferencesPathSetValue(self.session, tree, settings)
def SetPathValue ( self , path , value ) : base = os . path . basename ( path ) if not base : raise SysconfigError ( 'Updating %s not permitted.' % path ) tree = os . path . dirname ( path ) settings = SCPreferencesPathGetValue ( self . session , tree ) if not settings : settings = NSMutableDictionary . alloc ( ) . init ( ) settings [ base ] = value SCPreferencesPathSetValue ( self . session , tree , settings )