Make Scene local

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

something like:

bpy.data.scenes[‘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.data.scenes[:]
bpy.ops.wm.link_append(..., link=False)
scene = (s for s in bpy.data.scenes if s not in scenes).__next__()