How to build a Windows service using win32?

Gregor Mosheh gregor at
Wed Mar 7 17:35:08 CET 2007

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.

Gabriel Genellina wrote:
> Have you installed the pywin32 package from
> ?
> The code skeleton looks OK to me.

Indeed, I have win32 installed. I'm used to writing wx applications,
compiling into exes, etc. Services are a new direction for me.

So, both of you say that the program I sent *did* work?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <>

More information about the Python-list mailing list