【文件属性】:
文件名称:windows_service_for_python:使用 Python in32serviceutil.ServiceFramework 创建 windows 服务
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-12 12:24:05
Python
#使用Python创建windows服务#Template
import win32serviceutil
import win32event
import servicemanager
class MyService(win32serviceutil.ServiceFramework):
_svc_name_ = 'KennySrv'
_svc_display_name_ = 'Kenny Test Service'
_svc_description_ = 'Test Kenny Service'
def __init__(self, args):
win32serviceutil.ServiceFramework.__init__(self, args)
self.hWaitStop = win32event.CreateEvent(None, 0, 0
【文件预览】:
windows_service_for_python-master
----KennySrv.py(3KB)
----KennySrv.spec(631B)
----README.md(4KB)