[python-win32] How to determine whether program running asservice?

Mark Hammond markh at keypoint.com.au
Fri Sep 10 08:06:00 CEST 2004


> Why not something like this:
>   servicemanager.RunningAsService() -> bool
> 
> A RunningAsService predicate would keep the functionality grouped with
> other service-related predicates (e.g., servicemanager.Debugging)),

*sigh* - I really should stop rushing :(

Yes, Debugging() already exists - RunningAsService() fits better.

Mark.



More information about the Python-win32 mailing list