title: Why can't Python find and run my scripts when calling Python from Python command line?
body: <p>I am in the python command line (using python 2.7), and trying to run a Python script. My operating system is Windows 7. I have set my directory to the folder containing all of my scripts, using:</p>
  
  <p><code>os.chdir("location")</code>.</p>
  
  <p><code>os.getcwd()</code> returns this location.</p>
  
  <p>When I type:</p>
  
  <p><code>python myscript.py</code></p>
  
  <p>I get this error:</p>
  
  <p><code>File "&lt;stdin&gt;", line 1</code></p>
  
  <pre><code>python myscript.py
                ^
  </code></pre>
  
  <p><code>SyntaxError: invalid syntax</code>.</p>
  
  <p>What have I done wrong?</p>
  
  <p>The first uncommented line of the script I'm trying to run:</p>
  
  <p><code>from game import GameStateData</code></p>