widewing opened a new issue, #53617:
URL: https://github.com/apache/airflow/issues/53617

   ### Apache Airflow version
   
   3.0.3
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   The DAGs folder is expected in PYTHONPATH, and we should be import modules 
in the folder, as specified in 
https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/modules_management.html
   However after Airflow 3.0.2 the folder is no longer exist in PYTHONPATH and 
we cannot import modules in dag files.
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   import a module in a dag file, the module should be in the dags folder.
   run `airflow info`, the dags folder is not be presented
   
   ```
   Paths info
   airflow_home    | /app                                                       
                                                                                
                                                                                
                                              
   system_path     | 
/opt/oracle/instantclient_19_5:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                                                                                
                                                                                
              
   python_path     | 
/usr/local/bin:/usr/lib64/python39.zip:/usr/lib64/python3.9:/usr/lib64/python3.9/lib-dynload:/usr/local/lib64/python3.9/site-packages:/usr/local/lib/python3.9/site-packages:/usr/lib64/python3.9/site-packages:/usr/lib/python3.9/site-packages:/app/config:/app/plugins
   airflow_on_path | True
   ```
   
   ### Operating System
   
   rhel8
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other 3rd-party Helm chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   Related commit: 
https://github.com/apache/airflow/commit/b5db14625110d1bf98fedbb49a32e7326c06eacf
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to