from pathlib import Path import platform def_paths = { "Darwin": Path.home() / "Desktop", "Windows": Path.home() / "Pictures" / "Screenshots", "Linux": Path.home() / "Pictures", } sc_pathpatterns = { "Darwin": ["SCR*.png", "Screenshot*.png"], "Windows": ["Screenshot*.png"], "Linux": ["Screenshot*.png", "scrot*.png", "screenshot*.png"], }