|
10 | 10 | from datetime import datetime |
11 | 11 | from pathlib import Path |
12 | 12 | from yaml import safe_dump |
13 | | -from fosslight_reuse._help import print_help_msg |
| 13 | +from fosslight_prechecker._help import print_help_msg |
14 | 14 | from fosslight_util.constant import LOGGER_NAME |
15 | 15 | from fosslight_util.set_log import init_log |
16 | 16 | from fosslight_util.output_format import check_output_format |
17 | 17 | from ._parsing_excel import convert_excel_to_yaml, convert_yml_to_excel |
18 | 18 |
|
19 | | -CUSTOMIZED_FORMAT_FOR_REUSE = {'yaml': '.yaml', 'excel': '.xlsx'} |
20 | | -_PKG_NAME = "fosslight_reuse" |
| 19 | +CUSTOMIZED_FORMAT_FOR_PRECHECKER = {'yaml': '.yaml', 'excel': '.xlsx'} |
| 20 | +_PKG_NAME = "fosslight_prechecker" |
21 | 21 | logger = logging.getLogger(LOGGER_NAME) |
22 | 22 |
|
23 | 23 |
|
@@ -51,9 +51,9 @@ def convert_report(base_path, output_name, format, need_log_file=True, sheet_nam |
51 | 51 | now = datetime.now().strftime('%Y%m%d_%H-%M-%S') |
52 | 52 | is_window = platform.system() == "Windows" |
53 | 53 |
|
54 | | - success, msg, output_path, output_name, output_extension = check_output_format(output_name, format, CUSTOMIZED_FORMAT_FOR_REUSE) |
| 54 | + success, msg, output_path, output_name, output_extension = check_output_format(output_name, format, CUSTOMIZED_FORMAT_FOR_PRECHECKER) |
55 | 55 |
|
56 | | - logger, _result_log = init_log(os.path.join(output_path, f"fosslight_reuse_log_{now}.txt"), |
| 56 | + logger, _result_log = init_log(os.path.join(output_path, f"fosslight_prechecker_log_{now}.txt"), |
57 | 57 | need_log_file, logging.INFO, logging.DEBUG, _PKG_NAME, base_path) |
58 | 58 | if success: |
59 | 59 | if output_path == "": |
|
0 commit comments