Variable __path__ can be used in packages (not in scripts) - it is described in PEP 302 (http://www.python.org/dev/peps/pep-0302). But pydev marked it as an error.
1. Create a directory on the python path - for example "pydev_test".
2. Create file __init__.py in pydev_test with this function:
3. Try this code:
from pydev_test import get_path