2010/2/25 ALAN GAULD <alan.ga...@btinternet.com> > > > What should be the correct folder then? > > I don't know! To be honest I was surprised by the result too. > Personally I tend to either use the application folder or the registry. > But the app folder doesn't work for user specific settings unless > you have a separate file based on user ID. > > Its very odd. > > In fact Windows explorer appears to be lying. I just tried creating > a file using Python and it worked perfectly. But Explorer definitely > claims its R/Only! I also tried the ATTRIB command from DOS > and it does not show it as Read only. > > Cygwin shows it as readonly for world access but open for user > and group. The security tab in exporer shows it read/write for > admins and me. (It doesn't show a world setting) > > So I think that was a red herring, sorry. > It also looks like the Read Only check box in the main Explorer > property dialog tab doesn't mean what it says... > > Alan G. >
I just thought of something, and it can't be that the folder isn't writeable. Because I asked the user for the logfile that my program produces, and it is located in the same folder as where the database should be. So if the folder wasn't writeable, the creation of the logfile would have caused an error too. So I'm a bit stuck about this one. Timo
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor