[python-win32] Re: Getting path+executable associated with a process

2005-02-09 Thread Roger Upole
These functions in win32process should be able to get that for you: OpenProcess, EnumProcessModules and GetModuleFileNameEx The executable will be the first module returned from EnumProcessModules. Roger Gabriel Reis wrote: Hi, I want to get the executable filename and its path from a process

[python-win32] Getting path+executable associated with a process

2005-02-09 Thread Gabriel Reis
Hi, I want to get the executable filename and its path from a process. Imagine that I have an application installed in two different directories. The rule is: the user can't run an instance of this application if another instance, from the *same* directory, is already running. I've read PyWin32 d

[python-win32] Re: pythonw.exe hardcrash on py2exe wmi-sample / Pythin

2005-02-09 Thread Roger Upole
This is caused by a bug in Python's tokenizer. See sourceforge bug # [ 1085454 ] for details and a workaround. Roger ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Re: pythonw.exe hardcrash on py2exe wmi-sample / Pythin 2.4

2005-02-09 Thread Thomas Heller
"Massa, Harald" <[EMAIL PROTECTED]> writes: > (xposting from py2exe users) > > > Hello, > > I just upgraded my system to Python 2.4. I tried to do an former > 2.3-setup.py script to repackage my application within Python 2.4 > > > This application uses wmi and therefor has an typelib-argumen

[python-win32] pythonw.exe hardcrash on py2exe wmi-sample / Pythin 2.4

2005-02-09 Thread Massa, Harald
Title: Nachricht (xposting from py2exe users)      Hello,I just upgraded my system to Python 2.4. I tried to do an former 2.3-setup.py script to repackage my application within Python 2.4This application uses wmi and therefor has an typelib-argumentlist.on **generating typelib stubs** the run