Empty bpy.data.node_groups I need to change the value of an RGB node programmatically. The data path of the node in question is bpy.data.node_groups["Compositing Nodetree"].nodes["RGB"], as can be seen in the screenshot attached.



However, if I enter that path into the Python console, no node groups are returned. I.e. bpy.data.node_groups.keys() is empty.

What is going on here? How can one access node groups?
You can access the compositing node tree via:

bpy.context.scene.node_tree


And your RGB node this way:

bpy.context.scene.node_tree.nodes['RGB']


As for why the tooltip shows a data path that you can't really access?

Don't really know, might be a bug.