Re: changing a file's permissions

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Max Erickson wrote: > James <[EMAIL PROTECTED]> wrote: > >> So my question is: how does one change a file's permissions >> inside of python? > > Assuming you want to operate on the output file: > > import os > os.chmod(path, 755) Shouldn't that be os.chmod(p

Re: changing a file's permissions

2006-10-02 Thread Max Erickson
James <[EMAIL PROTECTED]> wrote: > --=_Part_63041_761240.1159752399799 > 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 permi

Re: changing a file's permissions

2006-10-02 Thread oscartheduck
> This is an attribute of the file (an object in the filesystem) which > is checked by the kernel before allowing the file to be > executed. Python has nothing to do with this; if the attributes allow > execution, you can execute it as a program; if not, you can't. > I took this to heart and chang

Re: changing a file's permissions

2006-10-01 Thread Ben Finney
James <[EMAIL PROTECTED]> writes: > 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. Th

changing a file's permissions

2006-10-01 Thread James
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 hav