Comment 9 for bug 366353

Revision history for this message
Brian Granger (ellisonbg) wrote : Re: [Bug 366353] Re: %run doesn't work with paths returned by tempfile.NamedTemporaryFile()

Here is the actual error and the path names that seem to be problematic:

In [1]: import tempfile

In [2]: f = tempfile.NamedTemporaryFile()

In [3]: f.name
Out[3]: 'c:\\docume~1\\admini~1\\locals~1\\temp\\tmpfydqw_'

In [4]: f.write('pass\n')

In [5]: %run $f.name
ERROR: File `c:docume~1admini~1locals~1temptmpfydqw_.py` not found.

On Fri, Apr 24, 2009 at 9:18 PM, Brian Granger <email address hidden> wrote:
>> You can via the menu:
>>
>>  http://www.ss64.com/nt/cmd.html
>>
>> But this is much, much better than the Windows Command Prompt:
>>
>>  http://sourceforge.net/projects/console/
>
> Thanks, that will help a lot!
>
> Brian
>

--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
<email address hidden>
<email address hidden>