title: How to import class name python
body: <p>Here is my python folder structure (it does not have any python package):</p>
  
  <pre><code> folder/
      script1.py
      script2.py
  </code></pre>
  
  <p>script1 has:</p>
  
  <pre><code>class myclass(object):
      def __init__():
          print("in init")
  
      def showReport():
          print("in report only function")
  </code></pre>
  
  <p>script2 has:</p>
  
  <pre><code>from . import myclass
  </code></pre>
  
  <p>and when I run python -m folder.script2</p>
  
  <p>I get <code>/usr/bin/python: cannot import name myclass</code></p>
  
  <p>How can I import this class so that I can call functions from this class on script2?</p>