This question sounds similar to this one, but it is different. When I press F5
to run my script in Spyder, the console shows a line like this:
runfile('C:/Users/usr/Documents/Python Scripts/BanditBook/algorithms/ucb/test_ucb1.py'
, wdir='C:/Users/usr/Documents/Python Scripts/BanditBook/algorithms/ucb')
I want to change that wdir
argument to go up two levels so that I am automatically running the script wdir = C:/Users/usr/Documents/Python Scripts/BanditBook
. How can I do this in Spyder? I am running Python 2.7.