title: Reading Config File in Python2.7
body: <p>I have a file named .env in my code directory
  .env has different configs</p>
  
  <pre><code>Eg : username = "xyz"
       password = "abcd"
  </code></pre>
  
  <p>In my code directory I have a folder called scripts</p>
  
  <p>Inside scripts I have a script named "control.py" which needs to read the config from .env</p>
  
  <p>How can I achieve this?</p>
  
  <p>The structure is something as below</p>
  
  <pre><code>/var/www/html/code/.env
  /var/www/html/code/scripts/control.py
  </code></pre>
  
  <p>.env has all the config stuffs and control.py needs to read these config.</p>