def assert_root()

in linux/cuda_installer/__main__.py [0:0]


def assert_root():
    if os.geteuid() != 0:
        print("This script needs to be run with root privileges!")
        sys.exit(1)