Change environment texture image

I’ve been working on changing node values, but have gotten stuck on environment textures

I want to swap out an hdr.


#works in compositing
bpy.data.scenes["Scene"].node_tree.nodes["mix-shadow-color"].inputs[1].default_value = (.9,.9,.9,1) 

#doesn't work
d = bpy.data.scenes["Scene"].node_tree.nodes["Environment Texture"].filepath
print(d)

Edit: found a linkwith working code