Hi - I'm a novice at PyCharm, just trying out EAP 1.1, after using the NetBeans Python support for quite a while. How does PyCharm determine what it should add to sys.path when it runs a file? It's not doing what I would expect.
My project directory hierarchy looks like this:
I have marked MyProject/src as the "Source Root".
If I run something.py PyCharm prepends /home/me/MyProject/src/mymodule to sys.path (twice).
If I run somethingelse.py it prepends /home/me/MyProject/src/mymodule/submodule to sys.path (twice).
But I would expect it to add /home/me/MyProject/src to sys.path. (This is what NetBeans does when you designate a source folder.)
from mymodule import Blah
in it, but because of the wrong sys.path, Python can't find mymodule
What's the best way to get the correct sys.path (PYTHONPATH)?
Thanks very much,