Skip to content

Commit b964b0b

Browse files
authored
convert relative to abs file path (#270)
1 parent fd34624 commit b964b0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

script/submit-mlperf-results/customize.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ def preprocess(i):
1717
file_path = env['MLC_MLPERF_SUBMISSION_FILE']
1818
submitter_name = env.get('MLC_MLPERF_SUBMITTER', '')
1919

20+
# check the file_path is absolute or relative
21+
# if it is relative, convert to absolute
22+
if not os.path.isabs(file_path):
23+
file_path = os.path.abspath(
24+
os.path.join(
25+
env['MLC_TMP_CURRENT_PATH'],
26+
file_path))
27+
2028
r = get_signed_url(
2129
server,
2230
benchmark,

0 commit comments

Comments
 (0)