|
31 | 31 | import subprocess |
32 | 32 | fosslight_source_installed = True |
33 | 33 | try: |
34 | | - from fosslight_source.cli import run_all_scanners as source_analysis |
35 | | - from fosslight_source.cli import create_report_file |
| 34 | + from fosslight_source.cli import run_scanners as source_analysis |
36 | 35 | except ModuleNotFoundError: |
37 | 36 | fosslight_source_installed = False |
38 | 37 |
|
@@ -122,7 +121,6 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False, |
122 | 121 | correct_fpath = src_path |
123 | 122 |
|
124 | 123 | try: |
125 | | - sheet_list = {} |
126 | 124 | final_excel_dir = os.path.abspath(final_excel_dir) |
127 | 125 | abs_path = os.path.abspath(src_path) |
128 | 126 |
|
@@ -150,12 +148,7 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False, |
150 | 148 | -1, source_analysis, |
151 | 149 | abs_path, |
152 | 150 | src_output, |
153 | | - False, num_cores) |
154 | | - if success: |
155 | | - sheet_list["SRC_FL_Source"] = [scan_item.get_row_to_print() for scan_item in result[2]] |
156 | | - create_report_file(0, result[2], result[3], result[4], 'all', False, |
157 | | - _output_dir, output_files["SRC"].split('.')[0], output_extension, |
158 | | - correct_mode, correct_fpath, abs_path) |
| 151 | + False, num_cores, False) |
159 | 152 | else: # Run fosslight_source by using docker image |
160 | 153 | src_output = os.path.join("output", output_files["SRC"]) |
161 | 154 | output_rel_path = os.path.relpath(abs_path, os.getcwd()) |
|
0 commit comments