[python-win32] Running Python HTTPServer as Windows Service

2008-06-30 Thread Luke Stedman
Hey guys, I am in the process of trying to setup a Python HTTPServer as a Windows Service. I have a set of scripts that run the web server and a wrapper batch file, they both work fine when I run them manually. I used the process outlined at http://agiletesting.blogspot.com/2005/09/running-pytho

Re: [python-win32] Running Python HTTPServer as Windows Service

2008-06-30 Thread Luke Stedman
Ignore me...have identified the problem In the listings given it says that a one of the values under the Parameter key for the registry entry for the service should be "AppDir", it should actually be "AppDirectory". Following on from this, can anyone advise me on solution to stopping/killing

Re: [python-win32] Get listening ports

2008-06-30 Thread le dahut
I've found this : http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/392572 But maybe those APIs are available in pywin32 ? Marcus Low wrote : Hi, Yup ip helpers the way, but alternatively if u want a simple routine, u can launch the netstat -a -b after u createprocess with the approp

Re: [python-win32] Get listening ports

2008-06-30 Thread Tim Golden
le dahut wrote: I've found this : http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/392572 That's great. I never thought of looking in the cookbook. But maybe those APIs are available in pywin32 ? Don't think so. Roger/Mark? TJG ___ python-

Re: [python-win32] Get listening ports

2008-06-30 Thread Marcus Low
Excellent find. Hmm..i think we might have enough new win32 recipes and content to warrant a new book on Python for Windows programming. The last book was like ...8 years ago? (well ya i know this topic have pop-up way too many times) Tim Golden wrote: le dahut wrote: I've found this : http:

Re: [python-win32] Get listening ports

2008-06-30 Thread Tim Golden
Marcus Low wrote: Excellent find. Hmm..i think we might have enough new win32 recipes and content to warrant a new book on Python for Windows programming. The last book was like ...8 years ago? (well ya i know this topic have pop-up way too many times) I'm struggling (in both senses) to find

Re: [python-win32] return & tuples (& lists)

2008-06-30 Thread Tim Roberts
Larry Bates wrote: Michel Claveau wrote: Not a question. Only a little note... (for readers without Sunday activity) ... If you have a tuple and want to return it, just return it: return vret If you want to wrap objects in a tuple to return it, I would recommend using the build in tuple(