I already found this question that suggests to use os.path.expanduser(path) to get the user\'s home directory.
os.path.expanduser(path)
I would like to achieve the same with the
For python3+ mac or linux
from pathlib import Path path_to_download_folder = str(os.path.join(Path.home(), "Downloads"))