title: Import another Python file runs that file instead of actually importing it
body: <p>I have two Python files: one is the main file (the file that I am trying to import), the other is a Turtle file (the file that I am trying to import the main file into). I am trying to retrieve a variable from that main file to use in my Turtle file</p>
  
  <p>When I try to do <code>from main_file import variable</code> on my Turtle file, it runs the entire main file, instead of importing that single variable.</p>
  
  <p>I've tried doing the following:</p>
  
  <p>1)    </p>
  
  <pre><code>import main_file as this_file
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>from main_file import *
  </code></pre>
  
  <p>but neither of them work.   </p>
  
  <p>I am using Python 3.7.3.
  Any help will be greatly appreciated.</p>