Comment 19 for bug 958987

Revision history for this message
Richard Stanton (a-stanton) wrote :

A quick follow-up with the results of some experiments using r927 under Windows (Unfortunately, r928 breaks things too much to run the experiments at all...):

1) If I press C-c C-c while visiting the following file:

#!/usr/bin/ipython
print "Hi, Richard"

I get the message

Wrote c:/temp/ipython9724znA.py

So the temp directory code works fine here.

2) If instead I use the same file but without the shebang line,

print "Hi, Richard"

I get the message

Wrote c:/python27/Scripts/ipython.bat9724AyG.py

So the temp file is written in the python directory in this case.

In both cases, py-shell-name was set to "c:/python27/Scripts/ipython.bat"

3) If I rerun experiment 2, but with py-shell-name set to "ipython", I get the following message:

Wrote c:/temp/ipython9724N8M.py

So the problem only seems to occur when python-mode things it's using a non-default version of ipython.