projects
/
web
/
firmware-selector-openwrt-org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82060f0
)
fix python method
author
Moritz Warning
<moritzwarning@web.de>
Sun, 24 May 2020 21:45:14 +0000
(23:45 +0200)
committer
Moritz Warning
<moritzwarning@web.de>
Sun, 24 May 2020 21:45:14 +0000
(23:45 +0200)
misc/collect.py
patch
|
blob
|
history
diff --git
a/misc/collect.py
b/misc/collect.py
index 9438329f811c46aae352edd578c32a7516734905..8ac6e761ccb371f533b26db274f3ee49dc31155d 100755
(executable)
--- a/
misc/collect.py
+++ b/
misc/collect.py
@@
-36,7
+36,7
@@
for path in args.input_path:
for file in Path(path).rglob('*.json'):
paths.append(file)
else:
- if not path.ends
_
with('.json'):
+ if not path.endswith('.json'):
sys.stderr.write("Folder does not exists: {}\n".format(path))
exit(1)
paths.append(path)