Make Scene local

Is there a simple command to make a linked/appended scene local?

something like:[‘Scene’].values(‘LOCAL’)?

for some reason, blender won’t let me a linked scene local at all - the button is grayed out?!

So you better append it in the first place. This should be save to use:

scenes =[:]
bpy.ops.wm.link_append(..., link=False)
scene = (s for s in if s not in scenes).__next__()