#!/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
    / "libexec"
    / "rocprofiler-compute"
    / "rocprof-compute"
)
os.execv(sys.executable, [sys.executable, str(TARGET), *sys.argv[1:]])
