PEP262 - database of installed packages

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Mar 25 11:41:38 EST 2002


"Thomas Heller" <theller at python.net> wrote in news:a7nhv1$mqa0r$1 at ID-
59885.news.dfncis.de:

> All true. On the other hand, Python has no possibility to display
> or change the owner and access control lists (except if you do some
> hardcore win32 programming).

It is messy, but not hardcore:

Python to display the owner of a file:
 os.system("dir /q " + filename)
Likewise, to display or change the access control list
 os.system("cacls "+arguments)
I don't know of an equivalent to change the owner of a file.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list