feluelle commented on a change in pull request #6252: [AIRFLOW-4676] Make 
airflow/macros Pylint compatible
URL: https://github.com/apache/airflow/pull/6252#discussion_r332104342
 
 

 ##########
 File path: airflow/macros/__init__.py
 ##########
 @@ -91,4 +92,4 @@ def _integrate_plugins():
     from airflow.plugins_manager import macros_modules
     for macros_module in macros_modules:
         sys.modules[macros_module.__name__] = macros_module
-        globals()[macros_module._name] = macros_module
+        globals()[macros_module.__name__.split('.')[-1]] = macros_module
 
 Review comment:
   @BasPH What do you think since you introduced pylint?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to