@@ -1387,6 +1387,7 @@ def check_project_name_vs_path(modified_files, lw, edit_files=False, checked_pro
13871387 # Walk upward as long as we're inside <repo>/projects, but not at its root
13881388 while os .path .commonpath ([folder , projects_abs ]) == projects_abs and os .path .basename (folder ) != "projects" :
13891389 tcl_path = os .path .join (folder , "system_project.tcl" )
1390+ tcl_path_rel = os .path .relpath (tcl_path )
13901391
13911392 if os .path .exists (tcl_path ) and folder not in checked_projects :
13921393 rel_path = os .path .relpath (folder , projects_abs )
@@ -1401,7 +1402,7 @@ def check_project_name_vs_path(modified_files, lw, edit_files=False, checked_pro
14011402 found = True
14021403 found_name = m .group (1 )
14031404 if found_name != expected_name :
1404- lw .append (f"{ f } : adi_project '{ found_name } ' does not match expected '{ expected_name } '" )
1405+ lw .append (f"./ { tcl_path_rel } : adi_project '{ found_name } ' does not match expected '{ expected_name } '" )
14051406 if edit_files :
14061407 line = re .sub (r'(\s*adi_project\s+)\S+' , r'\1' + expected_name , line )
14071408 changed = True
@@ -1410,7 +1411,7 @@ def check_project_name_vs_path(modified_files, lw, edit_files=False, checked_pro
14101411 if edit_files and found and changed :
14111412 with open (tcl_path , "w" ) as tclf :
14121413 tclf .writelines (lines )
1413- lw .append (f"{ tcl_path } : adi_project updated to '{ expected_name } '" )
1414+ lw .append (f"./ { tcl_path_rel } : adi_project updated to '{ expected_name } '" )
14141415
14151416 checked_projects .add (folder )
14161417 break
0 commit comments