emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Python system paths for CEDET


From: David Engster
Subject: Getting Python system paths for CEDET
Date: Sat, 13 Oct 2012 11:28:07 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

CEDET's Python support has a function
`semantic-python-get-system-include-path' which calls Python to more or
less simply do

import sys
print(sys.path)

and parse the resulting output. This little thing however has caused so
much problems in the past that I'd like to settle this thing now once
and for all.

I'm currently trying to get rid of the warning messages when compiling
our Python support since we're using stuff like `python-proc',
`python-buffer', `python-preoutput-result' and so on. I now see in
Emacs' python.el that there are new variables
`python-shell-internal-buffer', but the doc-string says that they are
only there because of CEDET compatibility. So it seems we're doing
things the wrong way.

So here's my question: What is The Right Way to send and parse the
command above? It'd be great if this could be made compatible with
'python-mode', which apparently is another Python mode for Emacs people
are using. Also, it should run with no problems in batch-mode so that
our unit tests run (this was a problem in the past).

-David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]