title: Cannot import my own module when running script in Spyder
body: <p>According to <a href="https://docs.python.org/3/tutorial/modules.html" rel="nofollow noreferrer">the official Python documentations</a> or to <a href="https://stackoverflow.com/questions/9383014/cant-import-my-own-modules-in-python">this post</a> importing own modules into scripts is quite easy. Basically I just need to create my .py files, save them in one directory and I can import them using just</p>
  
  <pre><code>from my_module import my_function
  </code></pre>
  
  <p>It is exactly what I did in my Project. I wrote two scripts and saved them inside one directory. I would like to use some functions from them in third script (again it is saved in the same directory). As in the picture below.</p>
  
  <p><a href="https://i.stack.imgur.com/UVWnH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UVWnH.png" alt="My python scripts"></a></p>
  
  <p>Now I import <em>WebScraper.py</em> in the following way
  <a href="https://i.stack.imgur.com/bp3RV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bp3RV.png" alt="enter image description here"></a></p>
  
  <p>As you can see in the picture above there's an error which says that there is no module named <em>WebScraper</em>. How can I deal with that problem?</p>