Skip to content

Commit fefe9c5

Browse files
committed
Do not mutate manifest_files while iterating over it
1 parent 123bb35 commit fefe9c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def generate_manifest(script_dir, manifest_path, frozen_manifest, *addl_manifest
3838
if frozen_manifest is not None:
3939
manifest_files.append(f"include('{frozen_manifest}')")
4040

41-
manifest_files = [
41+
frozen_manifest_files = [
4242
f'{script_dir}/driver/frozen/display/display_driver_framework.py',
4343
f'{script_dir}/driver/frozen/indev/touch_calibration/touch_cal_data.py',
4444
f'{script_dir}/driver/frozen/indev/touch_calibration/touch_calibrate.py',
@@ -51,7 +51,7 @@ def generate_manifest(script_dir, manifest_path, frozen_manifest, *addl_manifest
5151
f'{script_dir}/driver/frozen/other/task_handler.py'
5252
]
5353

54-
for file in manifest_files:
54+
for file in frozen_manifest_files:
5555
print(file)
5656
if not os.path.exists(file):
5757
raise RuntimeError(f'File not found "{file}"')

0 commit comments

Comments
 (0)