Re: Python open of c:\ path Problem

2008-08-23 Thread Fredrik Lundh
Wayne Watson wrote: Python doesn't like this: junkfile = open('c:\tmp\junkpythonfile','w') I get junkfile = open('c:\tmp\junkpythonfile','w') IOError: [Errno 2] No such file or directory: 'c:\tmp\\junkpythonfile' "\" is used as an escape character in string literals, so "\t" doesn't mea

Re: Python open of c:\ path Problem

2008-08-23 Thread Tim Golden
Wayne Watson wrote: Python doesn't like this: junkfile = open('c:\tmp\junkpythonfile','w') I get junkfile = open('c:\tmp\junkpythonfile','w') IOError: [Errno 2] No such file or directory: 'c:\tmp\\junkpythonfile' The clue, if you needed one, is there in that traceback. Notice the *single

Python open of c:\ path Problem

2008-08-23 Thread Wayne Watson
Title: Signature.html Python doesn't like this: junkfile = open('c:\tmp\junkpythonfile','w') I get     junkfile = open('c:\tmp\junkpythonfile','w') IOError: [Errno 2] No such file or directory: 'c:\tmp\\junkpythonfile' This problematic segment is just a hack of a similar statement which