1
0
Fork 0

fix: referenced before assignment

This commit is contained in:
OniriCorpe 2024-03-13 02:56:34 +01:00 committed by OniriCorpe
parent 775c6ef627
commit 1f2d5f2418

View file

@ -82,8 +82,8 @@ def generate_READMEs(app_path: Path):
description = None description = None
screenshots: List[str] screenshots: List[str]
if (app_path / "doc" / "screenshots").exists():
screenshots = [] screenshots = []
if (app_path / "doc" / "screenshots").exists():
# only pick files (no folder) on the root of 'screenshots' # only pick files (no folder) on the root of 'screenshots'
for entry in os.scandir(os.path.join(app_path, "doc", "screenshots")): for entry in os.scandir(os.path.join(app_path, "doc", "screenshots")):
if os.DirEntry.is_file(entry): if os.DirEntry.is_file(entry):