Fix listdir sorting
This commit is contained in:
parent
8d27e18464
commit
5a3b4914a0
6
run.py
6
run.py
@ -43,7 +43,7 @@ def blockdevice(termsize, settings):
|
||||
|
||||
|
||||
def checks(termsize, settings):
|
||||
for check in os.listdir("checks/").sort:
|
||||
for check in sorted(os.listdir("checks/")):
|
||||
if check[-6:] == ".check":
|
||||
# Run loop
|
||||
run = True
|
||||
@ -71,7 +71,7 @@ def checks(termsize, settings):
|
||||
|
||||
|
||||
def steps(termsize, settings):
|
||||
for step in os.listdir("steps/").sort:
|
||||
for step in sorted(os.listdir("steps/")):
|
||||
if step[-5:] == ".step":
|
||||
# Run loop
|
||||
run = True
|
||||
@ -99,7 +99,7 @@ def steps(termsize, settings):
|
||||
|
||||
|
||||
def flavours(termsize, settings):
|
||||
for flavour in os.listdir("flavours/").sort:
|
||||
for flavour in sorted(os.listdir("flavours/")):
|
||||
if flavour[-8:] == ".flavour":
|
||||
# Run loop
|
||||
if _ask("Do you want to run flavour %s?" % (flavour), [ "yes", "no" ]) == "no":
|
||||
|
Loading…
Reference in New Issue
Block a user