[python-win32] finding pythonXX.dll?

Bill Janssen janssen at parc.com
Tue May 4 18:58:49 CEST 2010


Roger Upole <rwupole at 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
> 
> win32api.GetModuleFileName(sys.dllhandle)
> 
>      Roger

Sorry, I wasn't clear enough.  I'm trying to figure out where to install
the win32 dlls, so I can't use them in that determination.

Bill


More information about the python-win32 mailing list