Re: [python-win32] Running a Windows Python service without pythonservice.exe?

2010-05-11 Thread Mark Hammond
On 11/05/2010 12:50 PM, Bill Janssen wrote: Mark Hammondskippy.hamm...@gmail.com wrote: That's correct. Using python.exe as the host will involve having a .py script which imports the servicemanager module then call PrepareToHostSingle and instantiate the service class - or something like

Re: [python-win32] Running a Windows Python service without pythonservice.exe?

2010-05-11 Thread Bill Janssen
Thanks, Mark. I suppose I could run regsetup.py, but that would make my private Python globally known, not really what I want to do. I'll soldier on with option (a), using python.exe to run the service, and see if I can get that to work on a simple example. Bill

Re: [python-win32] Running a Windows Python service without pythonservice.exe?

2010-05-11 Thread Bill Janssen
Mark Hammond mhamm...@skippinet.com.au wrote: Sounds about right - but reading pythonservice.cpp is really the definitive source to what needs to be done. Sadly I can't find anything more specific, such as a sample. OK. pythonservice.exe has a lot of stuff in it -- for instance, there seems

Re: [python-win32] Running a Windows Python service without pythonservice.exe?

2010-05-11 Thread Bill Janssen
OK, so I wrote my own InstallService: import sys, os, win32service def InstallService(pythonClassFile, serviceName, displayName, startType = None, errorControl = None, bRunInteractive = 0,

Re: [python-win32] how to get access to someone's else Outlook Calendar ?

2010-05-11 Thread Stef Mientki
On 11-05-2010 04:01, Mark Hammond wrote: On 4/05/2010 6:40 AM, Stef Mientki wrote: Now one small question, how do I get those constants, like constants.olFolderCalendar (=9) ? makepy needs to have been run for the object in question before the constants magically appear. It should be as

Re: [python-win32] Running a Windows Python service without pythonservice.exe?

2010-05-11 Thread Mark Hammond
On 12/05/2010 4:28 AM, Bill Janssen wrote: OK, so I wrote my own InstallService: That actually isn't necessary - the class can provide _exe_name_ and _exe_args_ attributes to override the defaults. See attached sample which works for me - be sure to place it in the same directory as the