|
From: Jaco S. <JS...@cl...> - 2004-06-02 06:33:12
|
Thanks a lot
fixed it in boot_service.py
now I'd like to know how do I go about submitting this as a patch to have
it included in the standard library?
thanks
Jaco
I've made the following changes (from line 137):
if do_install:
for k in service_klasses:
if hasattr(k, '_svc_deps_'): # check if there
are dependencies
svc_dependencies = getattr(k, '_svc_deps_') # get
the value
else: # if not
svc_dependencies = None # set value to None
svc_display_name = getattr(k, "_svc_display_name_",
k._svc_name_)
win32serviceutil.InstallService(None, k._svc_name_,
svc_display_name,
exeName = sys.executable,
userName = userName,
password = password,
startType = startType,
bRunInteractive =
bRunInteractive,
serviceDeps = svc_dependencies
#include the serviceDeps in the installService call
)
Thomas Heller <th...@py...>
Sent by: py2...@li...
06/01/2004 09:34 PM
To: Jaco Smuts <JS...@cl...>
cc: py2...@li...
Subject: Re: [Py2exe-users] win32 service dependency
Jaco Smuts <JS...@cl...> writes:
> hi there
>
> I've written a simple python that I want to run as a service on win2k.
>
> I've succefully compiled it and it works fine.
>
> however, it depends on another service and I don't know how to register
> the dependancy. Currently when I reboot my machine it tries to startup
> before the other service and subsequently fails.
>
> any advice would be appreciated.
Please see the code in py2exe/boot_service.py, and
lib/site-packages/win32/lib/win32serviceutil.py.
Would you like to create a patch?
Thomas
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Py2exe-users mailing list
Py2...@li...
https://lists.sourceforge.net/lists/listinfo/py2exe-users
|