Blender 2.8 removed use_environment_light API, what to use instead? So I found at the very bottom of this page that Blender removed the old use_enviroment_light API from bpy.types.WorldLighting. I have some code that used this API as follows:

bpy.context.scene.world.light_settings.use_environment_light = True


I wonder how I can update this code to keep using environment light in my rendering?
The property use_environment_light was part of the settings for the world when the Blender Internal render engine was used. This render engine has been removed in Blender 2.80 and replaced by Eevee. Like Cycles, Eevee uses the nodes based system for the world settings. Enabling environment lighting isn't necessary, it's always on.