title: How to access a module from outside your file folder in Python?
body: <p>How can I access modules from another folder?</p>
  
  <p>Here's the file structure:</p>
  
  <pre><code>/&lt;appname&gt;
      /config
          __init__.py
          config.py
      /test
          test.py # I'm here
  </code></pre>
  
  <p>I wanted to access the functions from config.py from test.py . How would I do this?<br>
  Here is my import:</p>
  
  <pre><code>import config.config
  </code></pre>
  
  <p>When I run the <code>test.py</code> script, it will always say:</p>
  
  <pre><code>ImportError: No module named config.config
  </code></pre>
  
  <p>Did I do something wrong?</p>