the project structure is as follows:
src
package1
a.py
c.py
i can import c from a.py, but why there is ImportError: No module named c, when i try to run a.py?
btw, i am using pydev
Edit 1
the problem is not the same, i run this script from Pydev, failed:( what should i do then? the src source folder is already in PYTHONPATH, but the ImportError still exists, why?
import sys;print sys.pathabove the import?-mswitch:python -m package1.a. Doing otherwise inevitably creates problems because runningpython package1/a.pywill not considera.pyas a submodule ofpackage1.