Re: How to remove read-only from a file

2008-06-06 Thread Robert Dailey
On Fri, Jun 6, 2008 at 11:05 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > >> Hi, >> >> Using Python 3.0, how can I remove a read-only property from a file in >> Windows XP? Thanks. >> > > import os > import stat > > os.chmod ("c:/temp/temp.txt", stat.S_IWRITE) > > (Haven't ac

Re: How to remove read-only from a file

2008-06-06 Thread Tim Golden
Robert Dailey wrote: Hi, Using Python 3.0, how can I remove a read-only property from a file in Windows XP? Thanks. import os import stat os.chmod ("c:/temp/temp.txt", stat.S_IWRITE) (Haven't actually checked that on Python 3.0 but I don't believe it's changed...) TJG -- http://mail.python.

How to remove read-only from a file

2008-06-06 Thread Robert Dailey
Hi, Using Python 3.0, how can I remove a read-only property from a file in Windows XP? Thanks. -- http://mail.python.org/mailman/listinfo/python-list