On 6/06/2011 2:54 AM, Massi wrote:
Hi everyone, I'm writing a script which implement a windows service
with the win32serviceutil module. The service works perfectly, but now
I would need to install several instances of the same service on my
machine for testing purpose.
This is hard since the service name is hard-coded in the service class
definition:
class MyService(win32serviceutil.ServiceFramework) :
_svc_name_ = 'MyService'
_svc_display_name_ = 'Instance ofMyService'
It is only hard-coded in the HandleCommandLine function - you probably
just want your own argv parsing and call InstallService directly.
HTH,
Mark
--
http://mail.python.org/mailman/listinfo/python-list