My code is essentially the following:
Code: Select all
import os
for fn in os.listdir('/sd/'):
# Some code here
pass
Code: Select all
ArtributeError: 'module' object has no attribute 'listdir'
I suspect there is some MICROPY_PY_XXX flag that needs to be defined to cause listdir to be defined, but I can't seem to figure out what it would be.
Does anyone know?
Thanks!