Creating a python win32 service

后端 未结 2 601
长情又很酷
长情又很酷 2020-12-01 04:02

I am currently trying to create a win32 service using pywin32. My main point of reference has been this tutorial:

http://code.activestate.com/recipes/551780/

相关标签:
2条回答
  • 2020-12-01 04:36

    I just create a simple "how to" where the program is in one module and the service is in another place, it uses py2exe to create the win32 service, which I believe is the best you can do for your users that don't want to mess with the python interpreter or other dependencies.

    You can check my tutorial here: Create win32 services using Python and py2exe

    0 讨论(0)
  • 2020-12-01 04:47

    I've never used these APIs, but digging through the code, it looks like the class passed in is used to register the name of the class in the registry, so you can't do any initialization of your own. But there's a method called GetServiceCustomOption that may help:

    http://mail.python.org/pipermail/python-win32/2006-April/004518.html

    0 讨论(0)
提交回复
热议问题