title: python3 - import a file in the same directory
body: <p>I have a test project that looks like this:</p>
  
  <pre><code>_ test_project
  ├- __init__.py
  ├- main.py
  └- output.py
  </code></pre>
  
  <p><code>__init__.py</code> is empty, and the other two files look like this:</p>
  
  <pre><code># main.py
  from . import output
  </code></pre>
  
  <p>and</p>
  
  <pre><code># output.py
  print("hello world")
  </code></pre>
  
  <p>I would like to import <code>output.py</code> just for the side effect, but I am getting this message instead:</p>
  
  <pre><code>(venv) $ python test_project/main.py
  Traceback (most recent call last):
    File "test_project/main.py", line 2, in &lt;module&gt;
      from . import output
  ImportError: cannot import name 'output'
  </code></pre>
  
  <p>What does the import statement in <code>main.py</code> have to be to just print "hello world"?</p>