uranusjr opened a new pull request, #25296: URL: https://github.com/apache/airflow/pull/25296
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. I think this is a reasonable compromise, since loading multiple packages of one same name is never a good idea in Python in the first place, and we should have been careful to preclude the possibility to begin with. Should fix #25271. cc @rino0601 @bmoon4 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
