I haven\'t been able to move common code outside of the dag directory that airflow uses. I\'ve looked in the airflow source and found imp.load_source.
Is it possible to
Add your airflow home path to PYTHONPATH
export AIRFLOW_HOME=/usr/local/airflow export PYTHONPATH="${PYTHONPATH}:${AIRFLOW_HOME}"
Dockerfile
ENV AIRFLOW_HOME=/usr/local/airflow ENV PYTHONPATH "${PYTHONPATH}:${AIRFLOW_HOME}"