[python-win32] pywin32 services

2010-07-19 Thread Michael Mileusnich
Hello, I am trying to run my app as a windows service however I run into the following problem: Traceback (most recent call last): File hqmonitor.py, line 220, inmodule File win32serviceutil.pyc, line 528, in HandleCommandLine File win32serviceutil.pyc, line 468, in GetServiceClassString

Re: [python-win32] pywin32 services

2010-07-19 Thread Vernon Cole
Well, you get that specific error from something like: list1 = ['this is a','list'] anError = list1[2] Traceback (most recent call last): File stdin, line 1, in module IndexError: list index out of range What does the code look like at hqmonitor.py line 220? -- VC On Mon, Jul 19, 2010 at

[python-win32] sys.path and PyWin32 scripting engine

2010-07-19 Thread Marc-Andre Belzile
Hi, Is the value of sys.path private for each new scripting engine I create ? Or is it global value ? According to my test results, any new paths added to sys.path from a specific engine seems to be available to others. Is it the expected behavior ? thanks -mab

Re: [python-win32] sys.path and PyWin32 scripting engine

2010-07-19 Thread Tim Roberts
Marc-Andre Belzile wrote: Is the value of sys.path private for each new scripting engine I create ? Or is it global value ? According to my test results, any new paths added to sys.path from a specific engine seems to be available to others. Is it the expected behavior ? I'm not

Re: [python-win32] pywin32 services

2010-07-19 Thread Tim Roberts
Michael Mileusnich wrote: I am trying to run my app as a windows service however I run into the following problem: Traceback (most recent call last): File hqmonitor.py, line 220, inmodule File win32serviceutil.pyc, line 528, in HandleCommandLine File win32serviceutil.pyc, line 468,

Re: [python-win32] pywin32 services

2010-07-19 Thread Roberto Aguilar
On Jul 19, 2010, at 5:39 AM, Michael Mileusnich wrote: Hello, I am trying to run my app as a windows service however I run into the following problem: Traceback (most recent call last): File hqmonitor.py, line 220, inmodule File win32serviceutil.pyc, line 528, in HandleCommandLine

Re: [python-win32] pywin32 services

2010-07-19 Thread Tim Roberts
Michael Mileusnich wrote: This is all local to my C drive. I opened up win32serviceutil and printed out fname and it is the directory where my app is running out of which is on C. It is longer than 8 characters I'm not sure how FindFiles works. FindFiles returns a tuple of interesting