fix: referenced before assignment
This commit is contained in:
parent
775c6ef627
commit
1f2d5f2418
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue