@@ -51,7 +51,6 @@ def main():
5151 correct_mode = True
5252 correct_filepath = os .getcwd ()
5353
54-
5554 scanned_result = []
5655 license_list = []
5756 time_out = 120
@@ -131,7 +130,7 @@ def main():
131130 print_help_msg_source_scanner ()
132131 sys .exit (1 )
133132 create_report_file (_start_time , scanned_result , license_list , selected_scanner , print_matched_text ,
134- output_path , output_file , output_extension , correct_mode , correct_filepath )
133+ output_path , output_file , output_extension , correct_mode , correct_filepath , path_to_scan )
135134 try :
136135 logger .info (yaml .safe_dump (_result_log , allow_unicode = True , sort_keys = True ))
137136 except Exception as ex :
@@ -142,7 +141,8 @@ def main():
142141
143142
144143def create_report_file (_start_time , scanned_result , license_list , selected_scanner , need_license = False ,
145- output_path = "" , output_file = "" , output_extension = "" , correct_mode = True , correct_filepath = "" ):
144+ output_path = "" , output_file = "" , output_extension = "" , correct_mode = True , correct_filepath = "" ,
145+ path_to_scan = "" ):
146146 """
147147 Create report files for given scanned result.
148148
@@ -190,7 +190,7 @@ def create_report_file(_start_time, scanned_result, license_list, selected_scann
190190 sheet_list ["scanoss_reference" ] = get_scanoss_extra_info (scanned_result )
191191
192192 if correct_mode :
193- success , msg_correct , correct_list = correct_with_yaml (correct_filepath , sheet_list )
193+ success , msg_correct , correct_list = correct_with_yaml (correct_filepath , path_to_scan , sheet_list )
194194 if not success :
195195 logger .info (f"No correction with yaml: { msg_correct } " )
196196 else :
0 commit comments