Re: [python-win32] finding pythonXX.dll?

2010-05-04 Thread Bill Janssen
Roger Upole rwup...@msn.com wrote: Bill Janssen wrote: Is there anyway to tell, from inside Python, where the python26.dll file is? I've got to install the win32 dlls in the same directory. I see that sys contains a symbol dllhandle, but that's just a numeric handle. Bill

Re: [python-win32] finding pythonXX.dll?

2010-05-04 Thread Thomas Heller
Bill Janssen schrieb: Roger Upole rwup...@msn.com wrote: Bill Janssen wrote: Is there anyway to tell, from inside Python, where the python26.dll file is? I've got to install the win32 dlls in the same directory. I see that sys contains a symbol dllhandle, but that's just a numeric

Re: [python-win32] finding pythonXX.dll?

2010-05-04 Thread Bill Janssen
Thomas Heller thel...@ctypes.org wrote: 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. from ctypes import * buf = create_string_buffer(256) windll.kernel32.GetModuleFileNameA _FuncPtr

[python-win32] finding pythonXX.dll?

2010-05-03 Thread Bill Janssen
Is there anyway to tell, from inside Python, where the python26.dll file is? I've got to install the win32 dlls in the same directory. I see that sys contains a symbol dllhandle, but that's just a numeric handle. Bill ___ python-win32 mailing list

[python-win32] finding pythonXX.dll?

2010-05-03 Thread Roger Upole
Bill Janssen wrote: Is there anyway to tell, from inside Python, where the python26.dll file is? I've got to install the win32 dlls in the same directory. I see that sys contains a symbol dllhandle, but that's just a numeric handle. Bill win32api.GetModuleFileName(sys.dllhandle)