title: How to import own module in PyCharm console
body: <p>I have an own module in my project directory and I import it into my code.</p>
  
  <p>main.py:</p>
  
  <pre><code>from my_module import Test
  
  print(Test.test())
  </code></pre>
  
  <p>my_module.py:</p>
  
  <pre><code>class Test:
  @staticmethod
  def test():
      return '123'
  </code></pre>
  
  <p>There is no problem running the code in PyCharm. But when I try to "Execute Selection in Console", I get </p>
  
  <p><code>Traceback (most recent call last):
    File "&lt;input&gt;", line 1, in &lt;module&gt;
    File "C:\Program Files (x86)\JetBrains\PyCharm 5.0.4\helpers\pydev\pydev_import_hook.py", line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
  ImportError: No module named 'my_module'</code></p>
  
  <p>How do I import own modules in the PyCharm console?</p>