From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Getting Python system paths for CEDET Date: Sat, 13 Oct 2012 11:28:07 +0200 Message-ID: <87obk6d8m0.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350120503 21970 80.91.229.3 (13 Oct 2012 09:28:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 09:28:23 +0000 (UTC) Cc: "=?iso-8859-1?Q?Fabi=E1n?= E. Gallina" , jan.moringen@uni-bielefeld.de To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 13 11:28:29 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TMy1E-0000Yn-Go for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2012 11:28:28 +0200 Original-Received: from localhost ([::1]:58938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMy17-0004T9-Ue for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2012 05:28:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMy15-0004St-7E for emacs-devel@gnu.org; Sat, 13 Oct 2012 05:28:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMy14-0007cJ-0c for emacs-devel@gnu.org; Sat, 13 Oct 2012 05:28:19 -0400 Original-Received: from randomsample.de ([83.169.19.17]:37673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMy13-0007bx-Cv for emacs-devel@gnu.org; Sat, 13 Oct 2012 05:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From; bh=OwXTBBK8eM/cqsNFy9ZFzT7qgiuntZRCt2MjhTCZ4N0=; b=JM7s1MwQmWWNqGukfkbFyaK+LARS4+L6krGa1SS5lfb/HeihyJ35hlUqHH0L++PSRHaZDKFuE2xQbt1E00WsvE9R5wHtP5kkb0f82p74BGqTGwfPVFDz5MRzT17QS7Ue; Original-Received: from dslc-082-083-038-062.pools.arcor-ip.net ([82.83.38.62] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TMy0u-00036N-DW; Sat, 13 Oct 2012 11:28:08 +0200 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Mail-Followup-To: emacs-devel@gnu.org, =?iso-8859-1?Q?Fabi=E1n?= E. Gallina , jan.moringen@uni-bielefeld.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 83.169.19.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154301 Archived-At: 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