Skip to content

Commit

Permalink
Added missing fix for ProductDataFormatter missed from 202311 (#1195)
Browse files Browse the repository at this point in the history
## Description

A fix for the ProductDataFormatter script was missed during the
transition from 202311 to 202405. This just adds it back.

For details on how to complete these options and their meaning refer to
[CONTRIBUTING.md](https://github.com/microsoft/mu/blob/HEAD/CONTRIBUTING.md).

- [ ] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

Tested on physical hardware.  Product Data is correctly being found.

## Integration Instructions

N/A
  • Loading branch information
kenlautner committed Oct 25, 2024
1 parent bf73b8a commit 79a2924
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import os
import struct
from collections import namedtuple
from pathlib import Path


class ProductDataFormatter:
Expand All @@ -24,11 +25,10 @@ def __init__(self, directory_path):
raise NotADirectoryError(
f"{directory_path} is an invalid directory!")

self._directory_path = directory_path
self._directory_path = Path(directory_path)

def _get_bins(self):
return glob.glob(os.path.join(
self._directory_path, '*.productdatabin.i'))
return self._directory_path.rglob('*.productdatabin.i')

def _get_signed_item(self, file_path):
with open(file_path, 'rb') as bin_file:
Expand Down

0 comments on commit 79a2924

Please sign in to comment.