DLL trouble

Chris Liechti cliechti at gmx.net
Tue May 7 15:15:10 EDT 2002


jcomer at ncmic.com (JC) wrote in 
news:2cb7e889.0205070823.2190b457 at posting.google.com:

> I have a C++ Builder application that has python embeded in it.  The
> python opens a word document and populates fields.  The problem is
> that I can not figure out which DLL files to include when I distribute
> the app.  I know python20.dll needs to be there but i'm still getting
> an error when I try and run the app.  The error is "Import Error: No
> module named win32com.client".  Anyone know which DLL or python files
> I need to include to get this to work.  I do not want to install
> python on all the machines that use the app, just the DLL or python
> files that are needed.
> Thanks for the help...

you could probably use one of the installers to resolve the dependencies. 
py2exe searches for imports and finds the needed modules and dlls/pyds 
(don't know Installer, i think it can do that too)

you can create a dummy setup.py build the app and look whats left in the 
generated "dist" directory and thow away the dummy application you just 
built. but you get all the needed files nicely aranged in one dir.

(maybe there would be w ways to only use the scanning function of py2exe. 
you can dig in the sources - its surely possible, but i think the approch 
aboveis faster for a one time use.)

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list