Help with py2exe...com dll

Michael Peuser mpeuser at web.de
Wed Aug 20 20:47:54 CEST 2003


I was analysing some problems a week ago (see
news:bhmbe5$nrq$07$1 at news.t-online.com
Some Results from Trying to Cheat py2exe)

I think py2exe ignores ANY path when loading out ot the exe.

Kindly
Michael P


"news1.sympatico.ca" <none at nowhere.com> schrieb im Newsbeitrag
news:Yjw0b.4328$HB4.548424 at news20.bellglobal.com...
>
>
> I am developping a com (dll based) in python. I obviously use py2exe to
> create the *.dll file. My program is based on 3 modules (the first one is
> calling the two others). If all 3 modules are located inside the same
> directory everything goes compiles and the com is created. However if I
put
> one of the module in a subfolder and try using the -i argument of py2exe
> nothing compiles and python tells me that it cannot find the
> subfolderX.packageX.py module. I have tried all the above:
>
> python.exe com_script.py py2exe -i subfoldername.modulename.py --com-dll
>
> python.exe com_script.py py2exe -i subfoldername.modulename --com-dll
>
> python.exe com_script.py py2exe -i subfoldername\modulename.py --com-dll
>
> python.exe com_script.py py2exe -p subfoldername --com-dll
>
> here is my startup script also:
>
> import sys
>
> sys.path.append("d:\\project\\projectX")
>
> sys.path.append("d:\\projets2\\projectX\\subfolderName")
>
> from distutils.core import setup
>
> import py2exe
>
> setup(name="The Big TEst",
>
> scripts=["MainModule", "Module2", "Module3"],
>
> version="1.0")
>
>
>
>






More information about the Python-list mailing list