[python-win32] Finding DLL's which are in use (loaded)

2010-04-07 Thread Tony Cappellini
I need to write a program which copies some dlls from one location to another. However, if any applications which use these dll's are running, Windows won't let the dll copy complete, until the apps which have the dlls loaded have terminated. I'm looking for a way to scan/probe to see if any apps a

[python-win32] Python AX script engine issue

2010-04-07 Thread Marc-Andre Belzile
Hello, My ActiveX object leaks when I submit it as a named item to the Python AX script engine (IActiveScript::AddNamedItem) with my AX site application. I'm using build 214 on a Vista 64 bit machine. The leak is not there though with build 212, the regression seems to have been introduced with

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-07 Thread Mark Hammond
On 8/04/2010 12:05 PM, Bill Janssen wrote: I don't think I've tried that config. I'll give it a shot. [After trying it...] Nope, that may be necessary, but it's not sufficient. I installed Python in a private directory "just for me", then copied in the pywin32 extensions, then copied the pywi

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-07 Thread Bill Janssen
Mark Hammond wrote: > > $ python -i > > Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit > > (Intel)] on win32 > > Type "help", "copyright", "credits" or "license" for more information. > import win32api > > Traceback (most recent call last): > >File "", line 1, in >

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-07 Thread Mark Hammond
On 8/04/2010 2:35 AM, Bill Janssen wrote: No luck so far. I install Python privately ("Just for me" on the Python installer) in C:\UpLib\1.7.9\python\, and unpack the pywin32 zip file in the Lib\site-packages\ subdir there. Then I copy python26.dll and the two pywin32 DLLs over to C:\WINDOWS\sy

Re: [python-win32] timeout function

2010-04-07 Thread Varun Avashia
I doubt that, I believe subprocess is the way to go. Just kick it in, sleep for some time and poll it, increment a counter and sleep again To call a function from a script with timeout, create a new python script as a thin wrapper around the function and send the timeout via command line (us

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-07 Thread Bill Janssen
Bill Janssen wrote: > > Just for the moment, I think I'll see if I can get things working by > > copying the DLLs into \WINDOWS\System32\, including Python26.dll. > > No luck so far. I install Python privately ("Just for me" on the Python > installer) in C:\UpLib\1.7.9\python\, and unpack the p

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-07 Thread Bill Janssen
Bill Janssen wrote: > Mark Hammond wrote: > > > On 6/04/2010 4:31 PM, Mark Hammond wrote: > > > On 6/04/2010 4:28 PM, Bill Janssen wrote: > > >> Mark, my system is a dozen or so Python programs plus a few Windows > > >> services implemented in Python. If I set those up to hack the "Path" > > >>

Re: [python-win32] timeout function

2010-04-07 Thread Tim Golden
On 07/04/2010 14:24, pacopyc wrote: Hi, I'm trying to execute a function that could end never (infinite time). I'd like to set a timeout. If function respond before 30 sec ok, else go away. Can I do it? I can't find simple examples. Can you help me? Have a look here: http://code.activestate.co

[python-win32] timeout function

2010-04-07 Thread pacopyc
Hi, I'm trying to execute a function that could end never (infinite time). I'd like to set a timeout. If function respond before 30 sec ok, else go away. Can I do it? I can't find simple examples. Can you help me? Thank you ___ python-win32 mailing li