Thread: [Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited ASTManager.java,1.
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-09-30 23:42:36
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21189/src/org/python/pydev/editor/codecompletion/revisited Modified Files: ASTManager.java Log Message: Index: ASTManager.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/ASTManager.java,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -d -r1.71 -r1.72 *** ASTManager.java 30 Sep 2005 19:40:50 -0000 1.71 --- ASTManager.java 30 Sep 2005 19:51:32 -0000 1.72 *************** *** 518,522 **** //this one is an exception... even though we are getting the name as a relative import, we say it //is not because we want to get the module considering __init__ ! AbstractModule mod = getModule(name.getAsRelativeImport(current.getName()), state.nature, false); if (mod == null) { --- 518,527 ---- //this one is an exception... even though we are getting the name as a relative import, we say it //is not because we want to get the module considering __init__ ! AbstractModule mod = null; ! ! if(current != null){ ! //we cannot get the relative path if we don't have a current module ! mod = getModule(name.getAsRelativeImport(current.getName()), state.nature, false); ! } if (mod == null) { |