title: Changing the "wdir" option in Spyder for Python
body: <p>This question sounds similar to <a href="https://stackoverflow.com/questions/11919615/how-to-change-the-path-of-python-in-spyder">this one</a>, but it is different. When I press <code>F5</code> to run my script in Spyder, the console shows a line like this: </p>
  
  <pre><code>runfile('C:/Users/usr/Documents/Python Scripts/BanditBook/algorithms/ucb/test_ucb1.py'
  , wdir='C:/Users/usr/Documents/Python Scripts/BanditBook/algorithms/ucb')
  </code></pre>
  
  <p>I want to change that <code>wdir</code> argument to go up two levels so that I am automatically running the script <code>wdir = C:/Users/usr/Documents/Python Scripts/BanditBook</code>. How can I do this in Spyder? I am running Python 2.7. </p>