fraca7 wrote:
>
> Make sure it doesn't output anything to stdout or stderr, I've run into
> problems with that. I always include this kind of code in NT services:
>
> class Devnull:
>      def write(self, bf):
>          pass
>      def close(self):
>          pass
>      def flush(self):
>          pass
>
> sys.stdout = sys.stderr = Devnull()

Thanks for your instructions. It's resolved my problem.

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

Reply via email to