Commit 6fdecc6f authored by lintangsutawika's avatar lintangsutawika
Browse files

reveresed os.walk

parent ec656bb1
...@@ -131,7 +131,7 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None: ...@@ -131,7 +131,7 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None:
""" """
Calling this function Calling this function
""" """
for root, subdirs, file_list in os.walk(task_dir): for root, subdirs, file_list in reversed(list(os.walk(task_dir))):
# if (subdirs == [] or subdirs == ["__pycache__"]) and (len(file_list) > 0): # if (subdirs == [] or subdirs == ["__pycache__"]) and (len(file_list) > 0):
for f in file_list: for f in file_list:
if f.endswith(".yaml"): if f.endswith(".yaml"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment