Thanks for the answer, I'll implement a context manager class.
Regards, Gilles On 04/07/2015 09:20 AM, Gilles Risch wrote:
Good morning, I'd like to use the python-daemon library on a raspberry pi to perform some IO tasks on the GPIOs. I must configure the pins and create some files during the start of the daemon. These files should be removed when I stop the daemon. Is there a simple way do do that when I implement my daemon? Can I do that in __init__ and __del__ or is that a bad practice? Regards, Gilles
_______________________________________________ python-daemon-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-daemon-devel
