Re: (no subject)

Matthias Meulien <[email protected]> Mon, 08 Jun 2015 23:15:12 +0200
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Eric Ludlam <[email protected]> writes:
 
> (...) To contribute to CEDET you will need to have signed papers 
> with the FSF to assign copyright to your changes. Is that 
> something you've done already? 

Yes, it was mandatory for (small) contributions I made to GNU 
Emacs.
 
> (...) Since you are interested in the way it handles import, I'd 
> first like to suggest you enable 
> 
> (global-semantic-decoration-mode 1) 
> 
> which will give you a quick way to see how it is finding your 
> imports.

Yes. In fact I always have `global-semantic-decoration-mode' on: I 
like it.

So here is what I have done so far. First I have read the 
definition of `semantic-python-get-system-include-path' and I have 
checked that customizing 
`semantic-python-dependency-system-include-path' works as 
expected: If I add the path to a virtual environment with a 
package not available globally, then imports referring to that 
packages are well handled.

Then I remembered that `python-shell-virtualenv-root' (the 
variable used to setup Python mode to use virtual environments) is 
supposed to be used as a local variable. Thus a solution could be 
based on `semantic-python-dependency-system-include-path' being a 
local variable too.

I tried to turn it to a per directory local variable (using 
`add-dir-local-variable') but it had no effect on imports 
referring to a package not available globally are still unknown...
-- 
Matthias

------------------------------------------------------------------------------