Newbie pythoner, with bizzare problem

richard_chamberlain richard_chamberlain at ntlworld.com
Sat Jul 22 02:43:11 EDT 2000


It works either of the following ways:

'c:\\windows\\autoexec.bat'
r'c:\windows\autoexec.bat'
'c:/windows/autoexec.bat'

Richard
Wayne Izatt <wayne.izatt at myself.com> wrote in message
news:39793A4D.A3D8995F at myself.com...
> Just a guess, since I don't know much about Windows, but isn't the '/'
meant
> to be a '\'?
>
> cheers
>
> Jack wrote:
>
> > Hey there,
> >
> > im pretty new to using python, and im just experimenting with file
access,
> > a wrote a script that works fine, and then all of a sudden it started
> > throwing up this error:
> >
> > inp = open("c:/autoexec.bat",'r')
> > TypeError: illegal argument type for built-in operation
> >
> > it was working fine before, and i dont see anything unusual in the
syntax.
> >
> > Any help would be appreciated,
> >
> > Cheers,
> >
> > Jack Green
>





More information about the Python-list mailing list