From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arne Babenhauserheide Newsgroups: gmane.emacs.bugs Subject: bug#10167: 23.3; python.el code execution does not add the buffers directory to the pythonpath. Date: Sun, 11 Dec 2011 20:57:21 +0100 Message-ID: <1410245.gZC2tulmG3@fluss> References: <87k46h99nn.wl%arne_bab@web.de> Reply-To: Arne Babenhauserheide NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5711921.0vsEKHKWbt"; micalg="pgp-sha256"; protocol="application/pgp-signature" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323633548 13157 80.91.229.12 (11 Dec 2011 19:59:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2011 19:59:08 +0000 (UTC) Cc: 10167@debbugs.gnu.org Bcc: Arne Babenhauserheide To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 11 20:59:00 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RZpY3-0000D5-RA for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Dec 2011 20:59:00 +0100 Original-Received: from localhost ([::1]:41280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZpY3-0001de-CS for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Dec 2011 14:58:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZpY0-0001dU-2E for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2011 14:58:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZpXy-0005ry-UG for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2011 14:58:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZpXy-0005rq-Sn for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2011 14:58:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RZpZ4-0002gc-D4 for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2011 15:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arne Babenhauserheide Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Dec 2011 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10167 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10167-submit@debbugs.gnu.org id=B10167.132363359310286 (code B ref 10167); Sun, 11 Dec 2011 20:00:02 +0000 Original-Received: (at 10167) by debbugs.gnu.org; 11 Dec 2011 19:59:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZpYu-0002fq-7N for submit@debbugs.gnu.org; Sun, 11 Dec 2011 14:59:53 -0500 Original-Received: from mout.web.de ([212.227.15.3]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZpYr-0002fi-Kt for 10167@debbugs.gnu.org; Sun, 11 Dec 2011 14:59:50 -0500 Original-Received: from fluss.localnet ([91.89.40.204]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0Lx77p-1Qgo6e2tLN-016jsf; Sun, 11 Dec 2011 20:58:37 +0100 User-Agent: KMail/4.7.3 (Linux/3.0.6-gentoo; KDE/4.7.3; x86_64; ; ) In-Reply-To: X-Provags-ID: V02:K0:+vNNBl71NfvUGXC/fz2S1s6v5n2I1gr19w5QSaRy79+ OC74TW0EnsMR8/YVsuQMIYMkN1s+m0W1CubsDYt+ps7Jq05kRn fOatWVsv/ZeSh5uz8niKdlLJxmkY+oMwbug1+j9Fuayw6f5cAj 033NlQZR/68hYng/rSO2GJY7DjmXYyB4rQlg6sd+kOnA1l0GUJ 11Hd3r0fkckA9yj3CUcOw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Dec 2011 15:00:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54897 Archived-At: --nextPart5711921.0vsEKHKWbt Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Am Freitag, 9. Dezember 2011, 15:24:07 schrieb Glenn Morris: > Arne Babenhauserheide wrote: > > When calling python-send-buffer, the behaviour of the code differs > > from actual code execution, because the parent directory of the fil= e is > > not in the PYTHONPATH. >=20 > I think this might be intentional? >=20 > http://lists.gnu.org/archive/html/emacs-devel/2008-09/msg00215.html That=E2=80=99s quite inconvenient=E2=80=A6 would it not be cleaner to r= emove "" before=20 importing emacs.py and add the buffer dir afterwards?=20 For anything which is not emacs.py it is clear that it will be run.=20 Alternatively add a new command which adds the buffer-dir - as I did fo= r=20 python-send-buffer. (my changes would be cleaner by the way if I removed the path after the= code=20 again) Best wishes,=20 Arne -- singing a part of the history of free software:=20 - http://infinite-hands.draketo.de --nextPart5711921.0vsEKHKWbt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iJwEAAEIAAYFAk7lCyIACgkQ3M8NswvBBUiOWQP+LziXPlZAwhDfiwzAFbrEys3E eei81bFVo/dQmnOC6t9YQLI3g20OSXMRNW8OJimia3yYMBwbqg/X4fdqqsZZxr+5 5GIFr2/qQVVjBnQg64eF3E0B+C9f20hYvYcxBKF411trbSXpoN6mOLz00O4ssLhA Pe/gSbIKCJVE7qwpwj0= =IeLF -----END PGP SIGNATURE----- --nextPart5711921.0vsEKHKWbt--