def get_all_mountpoint(all=False): partitions = psutil.disk_partitions(all=all) prt_by_mp = [x.mountpoint for x in partitions] return prt_by_mp