[python-win32] Passing Args through PythonService.exe
Andreas B
andreas.bohne at mevis.de
Wed Jul 24 11:40:25 CEST 2013
Hi,
Michael Manfre <mmanfre <at> gmail.com> writes:
>
> Is it possible to pass args through PythonService.exe on to the
ServiceFramework class? The only arg that I ever see come through the init
is a tuple containing only the _svc_name_. I need to install many services
for celery workers and having to create a separate class/file for each
environment and queue combination would be painful.
>
This works for me by setting the _exe_args_ class variable (similar to
_svc_name_) in my service class (found in win32serviceutil.py).
Regards,
- Andreas
More information about the python-win32
mailing list