rootcss commented on pull request #10770: URL: https://github.com/apache/airflow/pull/10770#issuecomment-688441882
@mik-laj currently while loading the plugins from either of the sources, we're not keeping the information about the source, path etc. To get this information, we'd need to probably introduce two attributes (something like `plugin_source` and `plugin_path`) for class `AirflowPlugin`. While loading the plugins in their specific methods, we can set these attributes to their relevant values. eg, In the case of entrypoint based plugins: ``` plugin_source: entrypoint_plugin plugin_path: str(entry_point.dist) ``` In the case of airflow plugins directory based plugins: ``` plugin_source: airflow_plugins_directory plugin_path: '/path/to/the/plugin/directory' ``` Let me know what do you think. ---------------------------------------------------------------- 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: [email protected]
