title: unable to access local file system from apache airflow python dag
body: <p>I have a python function which reads data from local csv file. once i deployed the dag in airflow i am getting &quot;No such file or directory&quot; error.</p>
  <p>i tried to set the env variable but no luck.</p>
  <p>my code:</p>
  <pre><code>os.environ[&quot;EP&quot;] = &quot;/localpath/&quot;
  lp = os.environ[&quot;EP&quot;]
  
  
  def main():
  print(&quot;Local Path&quot;, lp)
  with open(lp + 'empty_csv.csv') as csv_file:
      csv_reader = csv.reader(csv_file, delimiter=',')
      line_count = 0
      for row in csv_reader:
          if line_count == 0:
              print(f'Column names are {&quot;, &quot;.join(row)}')
              line_count += 1
          else:
              print(f'\t{row[0]} works in the {row[1]} department, and was born in {row[2]}.')
              line_count += 1
      print(f'Processed {line_count} lines.')
  
    with DAG(
      dag_id=&quot;first_dag&quot;,
      schedule_interval=&quot;@daily&quot;,
      default_args={
          &quot;owner&quot;: &quot;airflow&quot;,
          &quot;retries&quot;: 1,
          &quot;retry_delay&quot;: timedelta(minutes=5),
          &quot;start_date&quot;: datetime(2021, 1, 1),
      },
      catchup=False) as f:
  
  
  
  t1 = PythonOperator(
      task_id='task1',
      python_callable=main,
      #dag=dag
  )
  
  t1 
  </code></pre>