title: Centralizing configuration in python
body: <p>Currently my configuration options (constants / variables) are a bit fragmented, I have most of them in config.py but some are in the myfile.py at the top.</p>
  
  <pre><code>/utilities/myfile.py
  /config.py
  </code></pre>
  
  <p>An example of what you might find in my myfile.py is:</p>
  
  <pre><code>TEMP_DIR = '/tmp'
  </code></pre>
  
  <p>If I wanted to move this definition from my myfile.py into my config.py but still use it in my myfile.py, how do I go about it?</p>
  
  <p>I am new to python but I assume it is something along the lines of this at the top of myfile.py</p>
  
  <pre><code>from config
  </code></pre>