From 1b42c75604bba295bde305114fd130423c33a4f5 Mon Sep 17 00:00:00 2001 From: Maisam Arif Date: Wed, 4 Feb 2026 17:12:00 -0600 Subject: [PATCH] Adjusted priority of python lib in cli import Signed-off-by: Maisam Arif --- projects/amdsmi/amdsmi_cli/amdsmi_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_init.py b/projects/amdsmi/amdsmi_cli/amdsmi_init.py index db553495f78f..e5eef0f94d9f 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_init.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_init.py @@ -31,8 +31,8 @@ current_path = os.path.dirname(os.path.abspath(__file__)) python_lib_path = f"{current_path}/../../share/amd_smi" -sys.path.append(python_lib_path) -# If the python library is installed, it will overwrite the path above +sys.path.insert(0, python_lib_path) +# Prioritize the library from this installation over any pip-installed version try: from amdsmi import amdsmi_interface, amdsmi_exception