I'm trying to change my background image using python but I doesn't work and I can't find why.
here is my code:
import ctypes
import os
folder = "C:\\Users\\Nuriddin\\Desktop\\images"
image = "images[0].jpg"
image_path = os.path.join(folder, image)
SPI_SETDESKWALLPAPER = 20
ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, image_path, 0)
What is wrong in this code ? (I am sure that I entered the good path)
I am using Windows 10 and Python 3.4-x