Why isn’t the sys.path
in Spyder the same as in a shell?
In a shell python -c "import sys ; print(sys.path)"
doesn’t give the same thing as if I stop the script at the first line with a breakpoint to do in the debugging console import sys ; print(sys.path)
.
I’ve managed to get around the issue by defining the necessary directories in Tools > PYTHONPATH Manager, but I find the method rather dirty as the sys.path
is correct outside Spyder …