[python-win32] finding pythonXX.dll?

Roger Upole rwupole at msn.com
Tue May 4 05:00:28 CEST 2010


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)

      Roger



More information about the python-win32 mailing list