[python-win32] Re: How to determine whether program running as
service?
Thomas Heller
theller at python.net
Thu Sep 9 19:40:40 CEST 2004
David Rushby <davidrushby at yahoo.com> writes:
>> > What's the canonical way to programmatically determine whether a
>> > pywin32-based Python program is running as a Windows service or as
>> > a regular process?
>>
>> I don't see one :( I would be happy to add one - eg,
>> sys.serviceexecutable being set to the host executable when
>> launched as a service.
Is it possible to determine that a process is launched as service? I
don't think there is one, at least I didn't find one.
Thomas
More information about the Python-win32
mailing list