From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: Getting Python system paths for CEDET Date: Sat, 13 Oct 2012 17:13:40 +0200 Message-ID: <50798524.8000300@online.de> References: <87obk6d8m0.fsf@engster.org> <87fw5id0db.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350141234 13914 80.91.229.3 (13 Oct 2012 15:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 15:13:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 13 17:14:01 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 1TN3Pc-0004xI-BG for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2012 17:14:00 +0200 Original-Received: from localhost ([::1]:35560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN3PV-0005Ba-Kr for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2012 11:13:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN3PS-0005BJ-Gk for emacs-devel@gnu.org; Sat, 13 Oct 2012 11:13:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN3PR-0002zc-J3 for emacs-devel@gnu.org; Sat, 13 Oct 2012 11:13:50 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:54302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN3PR-0002zX-9Q for emacs-devel@gnu.org; Sat, 13 Oct 2012 11:13:49 -0400 Original-Received: from [192.168.178.27] (brln-4d0c2951.pool.mediaWays.net [77.12.41.81]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0Mgltb-1T2VtE41MV-00O0M8; Sat, 13 Oct 2012 17:13:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120825 Thunderbird/15.0 In-Reply-To: <87fw5id0db.fsf@engster.org> X-Provags-ID: V02:K0:15kOScqWr+UeM3JEODEN0Ab82QMqlAxqUHZJBzKNghP gxRU0R0VQu2eu9dapIZDzuDCR+EauPvwHab1I4+UUly92EEVUq n59W5WuLCzKetZhUFykQQU2+HQbXFWMZjQZI+oWi+/EbZnYaYN OIxBFQKGiXJXSAHmbATCallKsKt/M/9I6keEvotjeHHZJr/3ca LaqrcFfmVJqOxYwRscKNVk0ih2Zl5rzVTHLL8Olpyg+rV2YcVE qtDI4yt3suzWfmKh+1iFbxTO70O9UR1874n4lS7tfNk52aC8eJ oily/XCXqmv9pWnbb0djETquhy374ZFbkEnFy3qLZczZfFjCCs fg0NNqjpPquRGNk/OXg8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.9 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:154307 Archived-At: Am 13.10.2012 14:26, schrieb David Engster: > Andreas Schwab writes: >> David Engster writes: >> >>> So here's my question: What is The Right Way to send and parse the >>> command above? >> >> How about shell-command-to-string? > > That's what I thought, too. But people told me that it is better to go > through the python-mode layer, so that its configuration settings can be > reused (the Python version to use, for example). > > -David > > (getenv "PYTHONPATH") should be all you need here. However, it might not be of that great use for the Emacs side. When possible, let Python itself act. HTH, Andreas