@@ -259,9 +259,9 @@ def dump_error_msg(error_msg: str, exit=False):
259259 sys .exit (1 )
260260
261261
262- def init (path_to_find , file_list , need_log_file = True ):
262+ def init (path_to_find , output_path , file_list , need_log_file = True ):
263263 global logger , _result_log
264- logger , _result_log = init_log (os .path .join (path_to_find , f"fosslight_reuse_log_{ _start_time } .txt" ),
264+ logger , _result_log = init_log (os .path .join (output_path , f"fosslight_reuse_log_{ _start_time } .txt" ),
265265 need_log_file , logging .INFO , logging .DEBUG , PKG_NAME , path_to_find )
266266 if file_list :
267267 _result_log ["File list to check" ] = file_list
@@ -315,7 +315,7 @@ def run_lint(target_path, disable, output_file_name, format='', need_log_file=Tr
315315 path_to_find , file_to_check_list , _check_only_file_mode = get_path_to_find (target_path , _check_only_file_mode )
316316
317317 result_file , output_path , output_extension = create_result_file (output_file_name , format , _start_time )
318- init (output_path , file_to_check_list , need_log_file )
318+ init (path_to_find , output_path , file_to_check_list , need_log_file )
319319
320320 if os .path .isdir (path_to_find ):
321321 lic_present_files_in_yaml = []
0 commit comments