[Python-mode] py-execute-buffer and CWD
Andrea Crotti
andrea.crotti.0 at gmail.com
Tue Nov 1 12:33:58 CET 2011
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)))
More information about the Python-mode
mailing list