Skip to content

Commit

Permalink
Add support for license dir in current workdir (eg. everest-core/lice…
Browse files Browse the repository at this point in the history
…nses/)

Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Nov 23, 2024
1 parent 5d87e20 commit 32cf583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ev-dev-tools/src/ev_cli/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ def generate_module_files(rel_mod_dir, update_flag, licenses):
mod_def = helpers.load_validated_module_def(mod_path, validators['module'])

default_license_dir = Path(__file__).parent / 'licenses'
current_license_dir = work_dir / 'licenses'
additional_license_dir = Path(licenses)
license_dirs = [default_license_dir, additional_license_dir]
license_dirs = [default_license_dir, current_license_dir, additional_license_dir]
license_url = mod_def['metadata']['license']
license_header = helpers.get_license_header(license_dirs, license_url)

Expand Down

0 comments on commit 32cf583

Please sign in to comment.