If I understand correctly, each time when I run a python script, PyCharm does:
(1) Adds project roots and sources root to PYTHONPATH.
(2) Set working directory to the script's folder and run the script.
However, if I would want to run a script without PyCharm, from a terminal, it would be much easier to run the script from the project's root; so I don't have to make sure that my project root is in PYTHONPATH each time I want to run that script. I asked some people around and they also recommended to always run files from the project's root.
Therefore, I have following questions (and I am really surprised that I couldn't find a similar discussion on the internet):
(1) What is the reason why developers chose PyCharm to run the script from the script's folder by default?
(2) How do I change default run configuration of the python files in the project, in order to set their working directory to project root? So far I only managed to change the setting of individual files.
(3) Is that a good idea to do so, or is that a bad practice? I guess the answer to this question will follow from the answer to the first question. But it's important, so I write it explicitly.