def setup_log_dir()

in linux/install_gpu_driver.py [0:0]


    def setup_log_dir(cls):
        """
        Create the LOG_DIR path and STD(OUT|ERR)_LOG files.
        """
        cls.STDOUT_LOG.touch(exist_ok=True)
        cls.STDERR_LOG.touch(exist_ok=True)

        cls.STDOUT_LOG_F = open(cls.STDOUT_LOG, mode="a")
        cls.STDERR_LOG_F = open(cls.STDERR_LOG, mode="a")

        atexit.register(cls.close_logs)