Skip to content

Plugin loader tries to load every file in the plugin directory, not every module #415

@rsalmond

Description

@rsalmond

While developing a plugin I discovered that the plugin loader system is recursively calling imp.load_module() on every file it finds under the PLUGIN_PATH, not every directory / module. Because of this __init__.py is not always parsed prior to other code in the module.

I'm cutting an issue instead of a PR because I can't think of a situation where doing module imports rather than file imports would break something but I want to get some second opinions because maybe I'm just not very imaginative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions