On 7 Mar, 16:45, "Gregor Mosheh" <[EMAIL PROTECTED]> wrote:
> Giles Brown wrote:
> > Yeah.  You've cleverly decided to simplify the "smallest
> > possible python service" by removing the
> > if __name__ == '__main__':
>
> Ha ha. :)
> Seriously, though, I removed that long after it was failing to work, and
> have since replaced it and it didn't affect a thing.

Thats "didn't affect a thing" in the sense of "it was still broken but
so it didn't *affect a thing* when something else about it was
broken"? Yeah?

For the record I'm pretty confident that the "if __name__ ==
'__main__':" is necessary to stop the module attempting to handle the
command line with the pythonservice.exe looks to import the service
class when you start the service via the SCM.

Anyway you've got it working now so thats the main thing.

Giles

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

Reply via email to