sudo open() ? (python newbee question)

2005-06-14 Thread slava
hello,

i am writing a python script that will be run by a non root user
the script needs to open a file in write mode that is owned by root

file = open('/etc/apt/sources.list', 'r+')

returns permission error

how can i call sudo on open()?

thanks alot
slava
-- 
http://mail.python.org/mailman/listinfo/python-list


Image manipulation

2007-08-28 Thread Slava
I need to add dynamic text to animated GIF images.
What is a best way to do it?

Thanks.

-- 
http://mail.python.org/mailman/listinfo/python-list