3 | | The problem I have with that is I need to use `autodiscover_modules('path_to.my_module')`, which calls `module_has_submodule` in every app. In Python 2 it attempts to discover this module in all apps. In Python 3 it raises an exception the first time `path_to` is not a package, preventing loading any module in subsequent apps. |
| 3 | So you're saying that `module_has_submodule` should not accept dotted paths anyway. As a consequence, `autodiscover_modules` should not either ... However the dotted path feature I used and that actually worked ok for me until then with python 2.7 would not be hard to support. |
| 4 | |
| 5 | |
| 6 | The real-life problem I have with that is I need to use `autodiscover_modules('path_to.my_module')`, which calls `module_has_submodule` in every app. In Python 2 it attempts to discover this module in all apps (and consistently returns `True` or `False`). In Python 3 it raises an exception the first time `find_spec` fails, preventing loading any module in subsequent apps. |