py2exe DLL Search Path

M

Manfred Knobloch

Is it possible to tell py2exe to create the exe file in a way that
the resulting exe looks for python23.dll, _sre.pyd, library.zip, etc...
in a subdirectory? Something like set_runtime_library_dirs?

thanx in advance

M.Knobloch
 
T

Thomas Heller

Manfred Knobloch said:
Is it possible to tell py2exe to create the exe file in a way that
the resulting exe looks for python23.dll, _sre.pyd, library.zip, etc...
in a subdirectory? Something like set_runtime_library_dirs?

You simply supply a subdirectory in the zipfile argument, like

setup(...
zipfile="libdir\\library.zip")

This way the library.zip file as well as all the .pyd extensions will be
in the 'libdir' subdirectory relative to the exe. python23.dll has to
be in the same directory as the exe, though - to be exact, it has to be
on the PATH that windows uses to find dlls.

Thomas
 

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

Forum statistics

Threads
474,211
Messages
2,571,092
Members
47,693
Latest member
david4523

Latest Threads

Top