Re: [python-win32] problems when running python script from windows service app

2010-06-11 Thread Damian Okrasa
2010/6/11 Mark Hammond : > On 10/06/2010 9:28 PM, Damian Okrasa wrote: >> >> I'm using Python 3.1.2 on Windows 7. I have windows service written in >> C which starts python script and it doesn't work. However when C >> program isn't windows service it works flawlessly. > > Why not just implement th

Re: [python-win32] problems when running python script from windows service app

2010-06-11 Thread Mark Hammond
On 10/06/2010 9:28 PM, Damian Okrasa wrote: I'm using Python 3.1.2 on Windows 7. I have windows service written in C which starts python script and it doesn't work. However when C program isn't windows service it works flawlessly. Why not just implement the service directly in Python? // log.

[python-win32] problems when running python script from windows service app

2010-06-10 Thread Damian Okrasa
I'm using Python 3.1.2 on Windows 7. I have windows service written in C which starts python script and it doesn't work. However when C program isn't windows service it works flawlessly. // part of windows service Py_Initialize(); PyRun_SimpleString(buffer); Py_Finalize(); # python scipt import h