I'll try to be as clear as possible:
This is my project structure:
PYDEV PROJECT FOLDER
src folder
package
module1
module2
1 - In module1 I say:
import module2
and eclipse marks an unresolved import error. But if I hit run or try to run the script via command line (outside Eclipse), everything goes well. The module is used properly.
2 - Now, if I write:
import package.module2
Eclipse is happy, the error dissapears and the program runs from within Eclipse but if I try to run it via console outside Eclipse I get "No module named package.module2".
What is wrong?
I tried this solution: Unresolved import errors yet successful import still occurs
But I can't move everything up. Things have to be inside that package. Other that adding a @UnresovedImport to have eclipse stop complaining, what should I do?