#1528 Imports not detected properly

open
nobody
None
5
2012-09-11
2012-09-11
Mr_and_Mrs_D
No

The syntax

#file more_modules.moduleA
from .. import module1

is not recognized properly, see attached project
Structure :

root/ # added to the PYTHONPATH
--module1.py
--more_modules/
----moduleA.py

See also SO question : http://stackoverflow.com/questions/10659253/pydev-setting-up-an-existing-python27-project-complete-with-dlls-and-nested-so/
If nothing is added to the PYTHONPATH no errors occur of course but that's not desired.

Python 2.7.3
PyDev 2.6.0.2012062818

Discussion

  • Mr_and_Mrs_D
    Mr_and_Mrs_D
    2012-09-11

    test project for import

     
    Attachments