Skip to content

Commit 67c4ae1

Browse files
committed
Modify 'Analyze path' if input file on lint
1 parent 9d29d89 commit 67c4ae1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fosslight_prechecker/_precheck.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,11 @@ def dump_error_msg(error_msg: str, exit=False):
271271

272272
def init(path_to_find, output_path, file_list, need_log_file=True):
273273
global logger, _result_log
274-
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_log_pre_{_start_time}.txt"),
275-
need_log_file, logging.INFO, logging.DEBUG, PKG_NAME, path_to_find)
276274
if file_list:
277275
_result_log["File list to check"] = file_list
276+
path_to_find = file_list
277+
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_log_pre_{_start_time}.txt"),
278+
need_log_file, logging.INFO, logging.DEBUG, PKG_NAME, path_to_find)
278279

279280

280281
def get_path_to_find(target_path, _check_only_file_mode):

0 commit comments

Comments
 (0)