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
Other way instead of adding __init__.py file is to add the following include at the top of dag script:
__init__.py
import sys import os sys.path.insert(0,os.path.abspath(os.path.dirname(__file__)))