import ctypes ctypes.windll.user32.SystemParametersInfoW(20, 0, "absolute path" , 0)
import ctypes SPI_SETDESKWALLPAPER = 20 ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "image.jpg" , 0)