shashbha14 opened a new pull request, #63634:
URL: https://github.com/apache/airflow/pull/63634

    The Modules Management documentation currently assumes that the dags, 
config, and plugins folders are equivalent and
     all get added to the sys.path list. This is incorrect because the plugins 
folder also imports all .py files in this directory
     and registers them in the sys.modules namespace under the filename without 
the directory structure. This means that if you
     have a file named hdfs.py in the plugins/my_project directory, the file 
will end up as sys.modules["hdfs"], which can
     cause name clashes with other packages, such as the PyPI hdfs package. For 
this- 
    Two warning sections have been added:
     - In "Built-in PYTHONPATH entries" - describing the behavior of the 
sys.modules registration.
     - In "Use unique top package name" - describing the depth at which this 
can occur and the importance of the top-level
       package name being unique.
   This Fixes #63548
   


-- 
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]

Reply via email to