changing a file's permissions

James oscartheduck at gmail.com
Sun Oct 1 21:26:39 EDT 2006


I'm writing a script in linux to excercise my python skills and have
encountered a minor issue.

Writing the script and creating an ouput file was simple enough and didn't
take too long. However, I don't have permissions to execute the file by
default. Now, I could simply chmod 755 the sucker and have done with it, but
I want to apply the permissions within the python script if I can.

So my question is: how does one change a file's permissions inside of
python?

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061001/dc25b1cc/attachment.html>


More information about the Python-list mailing list