python - Changing a read-only file -


i need change text documents. way i've been doing making new file, copying line line old file , making changes on way, saving new file old file's name. becomes problem when have read permission on file. first oserrno 30, not letting me delete old file @ end of writing. if change open command 'r+', says file not found. don't have root access. know of workaround problem?

edit: responses. guess intended behavior of read-only file...

yes, right,
can read
cannot write.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -