Tiny refactoring

This commit is contained in:
Christian Mäder 2020-10-17 23:09:26 +02:00
parent 121c3f800d
commit fd3d3d11d1
2 changed files with 1 additions and 2 deletions

View file

@ -9,7 +9,7 @@ this_dir = dirname(abspath(__file__))
def filename(f):
return f.name
with scandir(dirname(abspath(__file__))) as it:
with scandir(this_dir) as it:
for f in sorted(it, key = filename):
if not f.is_file():
continue