def change(img):
if not os.path.isfile(img):<EOL><INDENT>return<EOL><DEDENT>desktop = get_desktop_env()<EOL>if OS == "<STR_LIT>":<EOL><INDENT>set_mac_wallpaper(img)<EOL><DEDENT>elif OS == "<STR_LIT>":<EOL><INDENT>set_win_wallpaper(img)<EOL><DEDENT>else:<EOL><INDENT>set_desktop_wallpaper(desktop, img)<EOL><DEDENT>logging.info("<STR_LIT>")<EOL>
Set the wallpaper.