Skip to content

Commit 1e2c558

Browse files
committed
Use pathlib instead of os.path
1 parent 12b7bc2 commit 1e2c558

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ci/src/merge-manifest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import os
2-
from os import path
1+
from pathlib import Path
32
import json
43

54
if __name__ == "__main__":
6-
plugins = [file for file in os.listdir("plugins") if path.isfile(file) and file.endswith("json")]
5+
plugins = list(Path("plugins").rglob("*.json"))
76

87
manifests = []
98

0 commit comments

Comments
 (0)