#!/usr/bin/env python3 """bin/rocprof-compute launcher: re-execs the libexec entrypoint with sys.executable.""" # Copyright (c) Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT import os import sys from pathlib import Path TARGET = ( Path(__file__).parent.parent / "@CMAKE_INSTALL_LIBEXECDIR@" / "@PROJECT_NAME@" / "@EXECUTABLE_NAME@" ) os.execv(sys.executable, [sys.executable, str(TARGET), *sys.argv[1:]])