just want to ask if this code in python is valid to use on any OS, i mean, i want to use the path then for exporting txt file to desktop so for example if user on Mac will not have problem, or is there another way to do it?
def get_path():
PATH = os.path.normpath(os.path.expanduser('~/Desktop'))
return PATH