#!/usr/bin/python3
# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
#
# This software product is a proprietary product of Nvidia Corporation and
# its affiliates (the "Company") and all right, title, and interest in and
# to the software product, including all associated intellectual property
# rights, are and shall remain exclusively with the Company.
#
# This software product is governed by the End User License Agreement
# provided with the software product.

# standard libraries
import sys

# NVIDIA libraries
from core.infra.cue.nvl import main
from core.scripts.nv_env_config import nv_env_apply

try:
    nv_env_apply()
    exit_code = main(sys.argv)
    sys.exit(exit_code)
except KeyboardInterrupt:
    sys.stdout.flush()
    sys.stderr.write("\nKeyboard Interrupt received, terminating...\n")
    sys.stdout.flush()
    sys.exit(0)
