chflags? (or alternative to os.system?)

Jim Correia noone at nowhere.com.invalid
Tue Feb 11 22:01:12 EST 2003


I'm relatively new to python.

I need to unlock a bunch of files from my python script. (I am running 
on Mac OS X which uses BSD chflags for the task.)

There doesn't appear to be a chflags in python. Am I missing it? A third 
party module?

I'd like to avoid a subshell for each file I process if I can (which is 
why I was looking for a built-in...). Is os.spawnl a better alternative 
since I don't care where the output goes?

Thanks,
Jim




More information about the Python-list mailing list