I am working with Spyder IDE to run my Python code. It seems that my cwd is set to my home folder by default, and I have to manually convert it to the directory of whatever file I'm working in using os
. This is very cumbersome. I would obviously like the cwd to simply be the directory of the file I'm working with.
I've checked under Tools > Preferences > Current working directory
, but the working directory is not set to a fixed directory. What are my options?