def win_service_main(service_name, real_main, argc, argv_raw):
try:
def win_service_main(service_name, real_main, argc, argv_raw):
try:
stop_event = threading.Event()
handler = HandlerEx(functools.partial(stop_event, win_service_handler))
h = advapi32.RegisterServiceCtrlHandlerExW(service_name, handler, None)
stop_event = threading.Event()
handler = HandlerEx(functools.partial(stop_event, win_service_handler))
h = advapi32.RegisterServiceCtrlHandlerExW(service_name, handler, None)
class BuildError(Exception):
def __init__(self, output, code=500):
self.output = output
class BuildError(Exception):
def __init__(self, output, code=500):
self.output = output