Skip to content

Running ORT on Windows tries to run scancode.bat, which might not exist #7745

Open
@cgz42

Description

@cgz42

When installing scancode-toolkit via pip (python -m install scancode-toolkit), no scancode.bat file is created. As a consequence the scancode invocation from ORT fails, as the usage of 'scancode.bat' is hard-coded on Windows.

Tested with:

  • Ort 4.0.0
  • scancode-toolkit 32.0.8
  • python 3.9.16

When I add a scancode.bat next to the scancode executable, simply forwarding all the command line arguments, ORT scan with scancode works.

Metadata

Metadata

Assignees

Labels

scannerAbout the scanner tool

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions