Help with py2exe...com dll

N

news1.sympatico.ca

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")
 
M

Michael Peuser

I was analysing some problems a week ago (see
Some Results from Trying to Cheat py2exe)

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

Kindly
Michael P
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top