title: Airflow having issues importing from files in a the same specified path as the execution file
body: <p>In order to structure my code effectively, I use <code>sys.path += [ PATH_TO_MODULE ]</code> to import functions into my DAGs.</p>
  
  <p>The structure is like this:</p>
  
  <pre><code>- MODULE
   |_run.py
   |_aux_functions.py
   |_config.py
  </code></pre>
  
  <p>It throws errors while importing <code>config</code> in <code>aux_functions</code>.</p>
  
  <p><code>aux_functions</code> is imported in <code>run.py</code>.</p>
  
  <p>DAG Code:</p>
  
  <pre><code>from airflow.operators.python_operator import PythonOperator
  from airflow                           import DAG
  
  from MODULE_PATHS import PATH_TO_MODULE
  import datetime
  import sys
  
  sys.path += [ PATH_TO_MODULE ]
  
  from run import run_function
  
  default_args = { "start_date": datetime.datetime( 2018, 8, 20 ) }
  
  with DAG( "run_dag_v1", default_args= default_args, schedule_interval= "0 0 * * *", ) as dag:
      task = PythonOperator( task_id= "run_function", python_callable= run_function, provide_context= True )
  
  task
  </code></pre>
  
  <p>The <code>run.py</code> imports <code>aux_functions</code> which imports <code>settings from config</code> during it's run which isn't working. The error showing up is:
  <code>ImportError: cannot import name 'settings'</code>.</p>
  
  <pre><code># run.py
  import aux_functions
  .....
  def run_function( **kwargs ):
      .....
  </code></pre>
  
  <p><br></p>
  
  <pre><code># aux_functions.py
  from config import settings
  .....
  </code></pre>
  
  <p><br></p>
  
  <pre><code># config.py
  settings = { ..... }
  </code></pre>
  
  <p>When the code is executed just in the shell it works fine with no issues, however when it is run through airflow, it keeps showing this import error.</p>
  
  <p>The testing is done via: <code>airflow test run_dag_v1 run_function 2018-8-21</code></p>
  
  <p>If I move the <code>settings</code> from the <code>config</code> to the <code>aux_functions</code> it works fine but why does this happen and how can I avoid it ?</p>