Thanks - it still took a bit more tweaking because of how I wrote a few
things, but the saving works fine now. I've been having trouble with finding
a version of the curses library for Windows that I can get working, so I
just used os.path.expanduser no matter the system. :/
Dave
On 10/7/07, claxo <[EMAIL PROTECTED]> wrote:
>
>
> > if os.name == "posix":
> > fname = "~/" + fname
> > infile = open(fname,"w")
>
>
> you must expand '~' before open:
>
> fname = os.path.join('~',fname)
> fname = os.path.expanduser( fname )
> infile = open(fname,'w')
> _______________________________________________
> Tutor maillist - [email protected]
> http://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor