From 4e34284b1ee76188f0be31928d9b8b13e882144d Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Tue, 25 Feb 2025 00:26:28 +0530 Subject: [PATCH] convert relative to abs file path --- script/submit-mlperf-results/customize.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/submit-mlperf-results/customize.py b/script/submit-mlperf-results/customize.py index 0936ec560..ae5824af2 100644 --- a/script/submit-mlperf-results/customize.py +++ b/script/submit-mlperf-results/customize.py @@ -17,6 +17,14 @@ def preprocess(i): file_path = env['MLC_MLPERF_SUBMISSION_FILE'] submitter_name = env.get('MLC_MLPERF_SUBMITTER', '') + # check the file_path is absolute or relative + # if it is relative, convert to absolute + if not os.path.isabs(file_path): + file_path = os.path.abspath( + os.path.join( + env['MLC_TMP_CURRENT_PATH'], + file_path)) + r = get_signed_url( server, benchmark,