Instead of iterating over path.iterdir() use Path.glob() and Path.rglob().
Currently this code exists for parsing the bite.html file and rendering the instructions. Parsing the file path for the code is complicated by the fact that in each bite directory there are exactly two (at least in all bites explored so far) .py files. One file for the bite, the other for the tests.
Instead of iterating over
path.iterdir()
usePath.glob()
andPath.rglob()
.Currently this code exists for parsing the
bite.html
file and rendering the instructions. Parsing the file path for the code is complicated by the fact that in each bite directory there are exactly two (at least in all bites explored so far).py
files. One file for the bite, the other for the tests.