On 11/10/2010 04:43 PM, Andrey Torba wrote:
> How to make symantic understand includes/import in python?
> Let in *.py file we have:
> import some_module
> Semantic tries to find file with a name as 'some_module' and doesn't
> see 'some_module.py'.
In the python support files, someone needs to implement a function
similar to this one from Java:
(define-mode-local-override semantic-tag-include-filename java-mode (tag)
"Return a suitable path for (some) Java imports."
(let ((name (semantic-tag-name tag)))
(concat (mapconcat 'identity (split-string name "\\.") "/") ".java")))
This basically turns "java.foo.package.Class" into
Hopefully this will allow you to make a quick fix. Let me now what the
right answer is for python, and I can add it.