I have written a Windows service in python. If I run my script from the command prompt
python runService.py
When I do this the service ins
Try changing the last few lines to
if __name__ == '__main__': if len(sys.argv) == 1: servicemanager.Initialize() servicemanager.PrepareToHostSingle(Service) servicemanager.StartServiceCtrlDispatcher() else: win32serviceutil.HandleCommandLine(Service)