logilab-common #122443 Support __path__ in modutils [validation pending]
As per the following docs:
python packages (__init__.py files) can update their __path__ variable to contain a list of different directories. This allows developers to have different parts of their package live in different directories.
The function _module_file() in modutils.py, when handling package files, assumes that the "path = [mp_filename]" (line 636). This could support the __path__ mechanism by loading the module and then setting "path = module.__path__".
The following patch has been tested and works as intended.
|appeared in||<not specified>|
|closed by||#5e15c1218a55 [modutils] Add basic support for namespace packages|
|patch||[modutils] Add basic support for namespace packages [applied]|