Windows problem with py-execute-directory
On windows I've had to replace line 9274...
i.e. the (ignore-errors .....) clause has failed on me.
Without this modification I get....
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
import os; os.chdir(
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\home\x07ndy'
I'm not an elisp guru but I guess the ignore-errors clause is failing, and the 'or' is moving on to(getenv "HOME"), and some wierd escaping is happening on my home directory - "C:\home\andy".
I don't know why (buffer-file-name) is in paren. It would make sense if if buffer-file-name is a function , but buffer-file-name is a variable so doesn't need to be wrapped in parens???!! Given that, i can't see how that clause can ever work.
Take with a pinch of salt though - like i say I'm not an elisp guru by any stretch.
Can you help with this problem?
Provide an answer of your own, or ask Andy Smith for more information if necessary.