title: How do I set an environment variable for airflow to use?
body: <p>Airflow is returning an error when trying to run a DAG saying that it can't find an environment variable, which is odd because it's able to find 3 other environment variables that I'm storing as a Python variable. No issues with those variables at all.</p>
  
  <p>I have all 4 variables in <code>~/.profile</code> and have also done </p>
  
  <pre><code>export var1="varirable1"
  export var2="varirable2"
  export var3="varirable3"
  export var4="varirable4"
  </code></pre>
  
  <p>Under what user does <code>airflow</code> run? I've done those <code>export</code> commands under <code>sudo</code> as well, so I thought they would be picked up by <code>airflow</code> when it runs the dag</p>