Python unable to import custom module despite having __init__.py
<p>I have a folder with a <code>__init__.py</code></p>

<pre><code>__init__.py:
#!/usr/bin/python2
flags="test"

main.py:

#!/usr/bin/python2
import foldername

def main():
    print foldername.flags

if __name__ == '__main__':
main()
</code></pre>

<p>Now, when I run <code>./main.py</code> (from inside the folder), I get the error</p>

<pre><code>ImportError: No module named foldername
</code></pre>
