Subject: Re: bug#10167: 23.3; python.el code execution does not add the buffers directory to the pythonpath.

From: Chong Yidong <[email-masked]>
Date: Fri, 27 Jan 2012 15:50:20 +0800

Arne Babenhauserheide <[email-masked]> writes:

> That’s quite inconvenient… would it not be cleaner to remove "" before 
> importing emacs.py and add the buffer dir afterwards? 
>
> For anything which is not emacs.py it is clear that it will be run. 
> Alternatively add a new command which adds the buffer-dir - as I did for 
> python-send-buffer.

If you are not about having cwd in the python path, set
python-remove-cwd-from-path to nil.