Skip to content

Commit

Permalink
Merge pull request #198 from fosslight/dev_scanoss_error
Browse files Browse the repository at this point in the history
Fix errors related to SCANOSS
  • Loading branch information
JustinWonjaePark authored Nov 13, 2024
2 parents 7277c09 + 71a9860 commit 631dcd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pyparsing
scanoss
scanoss<=1.14.0
XlsxWriter
fosslight_util>=2.1.1
PyYAML
Expand Down
2 changes: 2 additions & 0 deletions src/fosslight_source/run_scanoss.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def run_scanoss_py(path_to_scan: str, output_file_name: str = "", format: list =
if not os.path.isdir(output_path):
Path(output_path).mkdir(parents=True, exist_ok=True)
output_json_file = os.path.join(output_path, SCANOSS_OUTPUT_FILE)
if os.path.exists(output_json_file): # remove scanner_output.wfp file if exist
os.remove(output_json_file)

try:
scanner = Scanner(
Expand Down

0 comments on commit 631dcd4

Please sign in to comment.