I was trying to automate changing my wallpaper with python and came across this solution.
import ctypes
SPI_SETDESKTOPWALLPAPER=20
ctypes.windll.user32.SystemParametersInfoW(SPI_SETDESKTOPWALLPAPER, 0,r'E:\Pictures\DSC_0594.jpg', 0)
However, the wallpaper disappears after the pc is shutdown.Is there a way to make sure this doesn't happen.