[Python-mode] py-execute-buffer and CWD
Georg Brandl
georg at python.org
Tue Nov 1 22:51:34 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 01.11.2011 22:50, schrieb Andrea Crotti:
> On 11/01/2011 08:53 PM, Andreas Röhler wrote:
>> cd is a shell command
>>
>> you can't mix that into Emacs Lisp.
>>
>> BTW ipython shell would understand "cd" it, but that's another item.
>>
>> Maybe give a example, what you trying to do, so we can look how to solve
>> that task.
>>
>> BTW answered here, as you are not indicating a bug as thought at first
>> glance. My mistake...
>>
> Mm I don't think so: cd is an interactive compiled Lisp function in
> `files.el'.
>
> And anyway, I think is quite a bug, because if I run a python script I
> should expect that it runs in the same current directory...
I quite agree.
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
iEYEARECAAYFAk6waeUACgkQN9GcIYhpnLB+6wCfTtoS2ygA2KWbm1IhHf2B47rj
rPsAoLETDsRQs6uzebCAAt3tz3kUCWs9
=N2f6
-----END PGP SIGNATURE-----
More information about the Python-mode
mailing list