diff --git a/run.py b/run.py index c99be7e..8cef4ad 100755 --- a/run.py +++ b/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":