I have a package layout:
scenarios/
    __init__.py
    X/
        __init__.py
        Y/
            __init__.py
    Z/
        __init__.py 
I have executed
import scenarios
pkgutil.walk_packages(scenarios.__path__, scenarios.__name__ + '.')
But this generates a list only including the packages X and Z, Y is missing. What can I use to get all the sub directories?
Thanks
 
     
    