I have set the Spyder 2.7 preferences as follows: Preferences->Run-> General Settings-> Default working directory is: the script directory.
However for a particular script, spyder sets the working directory to the parent directory.
I have scripts in the same directory which don't exhibit this behaviour and run with the expected wdir.
I don't understand where or how the wdir is being altered from the default for this particular script.