title: how to "source" file into python script
body: <p>I have a text file <code>/etc/default/foo</code> which contains one line:</p>
  
  <pre><code>FOO="/path/to/foo"
  </code></pre>
  
  <p>In my python script, I need to reference the variable FOO.</p>
  
  <p>What is the simplest way to "source" the file <code>/etc/default/foo</code> into my python script, same as I would do in bash?</p>
  
  <pre><code>. /etc/default/foo
  </code></pre>