Am 01.11.2011 21:53, schrieb Andreas Röhler:
> Am 01.11.2011 12:33, schrieb Andrea Crotti:
>> While trying to run a script and there is already another *Python*
>> buffer open
>> for another directory, running the script normally fails if there are some
>> relative file paths.
>>
>> Apparently the CWD in the *Python* buffer remains the old one, and thus it
>> makes sense that Python can't resolve relative paths.
>>
>> I tried to add this line in py-execute-buffer but without success,
>> any help?
>>
>> (cd (file-name-directory (buffer-file-name py-master-file)))
> 
> cd is a shell command
> 
> you can't mix that into Emacs Lisp.

It's also an elisp function.

(I agree that it's named a bit out-of-consistency with the usual
wordy elisp function names...)

Georg

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to