Re: [python-win32] mapping from a service to its class file?

2010-05-09 Thread Bill Janssen
Bill Janssen jans...@parc.com wrote: For the [services] that are using PythonService.exe, I'd like to check to see whether the Python module for the service is still present. Is there any way to retrieve the information about that from the service? Here's what I came up with: import sys,

[python-win32] mapping from a service to its class file?

2010-05-07 Thread Bill Janssen
I'm enumerating some service running under XP with mgr = win32service.OpenSCManager(None, None, 4) try: svcinfo = win32service.EnumServicesStatus(mgr) for svc in svcinfo: svch = win32service.OpenService(mgr, svc[0], win32service.SERVICE_QUERY_CONFIG) try: