SubPackages on Windows

Issue #3 resolved
Pavel Boldin
created an issue

Seems like 'packages' option does not work correctly, at least on Windows.

This is because cycle in Finder._ImportAllSubModules requires for fileName to end with suffix. In case thats directory with subpackage there is no suffix so no subpackages are scrabed, even if recursive=True.

To fix this I'm proposing to check explicitly if fileName is actually directory containing init file with any suffix.

Comments (2)

  1. Anthony Tuininga repo owner

    Thanks for the pointer and the suggested patch. In this case the problem is not specific to Windows at all but meant that any included package would only include the top level and not any subpackages on all platforms. Change checked in. Please have a look and let me know if the problem is still not resolved for you. Thanks.

  2. Log in to comment