You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Philippe Gagnon (JIRA)" <ji...@apache.org> on 2019/06/04 20:44:01 UTC

[jira] [Closed] (AIRFLOW-4573) airflow_local_settings is imported before sys.path is populated

     [ https://issues.apache.org/jira/browse/AIRFLOW-4573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philippe Gagnon closed AIRFLOW-4573.
------------------------------------

> airflow_local_settings is imported before sys.path is populated
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-4573
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4573
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.10.3
>            Reporter: Philippe Gagnon
>            Assignee: Philippe Gagnon
>            Priority: Major
>              Labels: settings
>             Fix For: 1.10.4
>
>
> {{settings.py}} imports the contents of {{airflow_local_settings.py}} (which is expected to live under {{$AIRFLOW_HOME/config}}) before it is added to \{{sys.path}}. Thus, unless \{{airflow_local_settings.py}} is added manually to {{PYTHONPATH}} before execution, the module will not be found.
> This is caused by the \{{airflow_local_settings}} module getting imported before {{prepare_classpath()}} is called, which is the function responsible for adding \{{DAGS_FOLDER}}, \{{PLUGINS_FOLDER}} and {{$AIRFLOW_HOME/config}} to {{sys.path}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)