Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load distribution of a name once #25296

Merged
merged 1 commit into from
Aug 3, 2022

Commits on Aug 3, 2022

  1. Only load distribution of a name once

    This mimics the import system's behavior -- package of a name in front
    of sys.path "shadows" the one in the back, and should avoid a package
    from being loaded multiple times, if its containing directory appears
    multiple times in sys.path.
    
    This also causes a side effect: if there are *different* plugins of the
    same name, previously the one later in sys.path would have been
    discovered, but now it wouldn't. This is a reasonable compromise to me,
    since loading multiple packages of one same name is never a good idea
    in Python, and we should have been careful to preclude the possibility
    to begin with.
    uranusjr committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    1e7b5ec View commit details
    Browse the repository at this point in the history