Ubuntu Forums Archive Viewer

Compiling Python apps for windows with py2exe

Archived thread 1024466 from Windows. Markdown source: Windows/thread_1024466_Compiling_Python_apps_for_windows_with_py2exe.md

Original URL About this archive
#1

I am trying to make an application for windows using python & py2exe. Creating the application isn't a problem, my goal is to make the app look for the python.dll in a directory other than the executable's. For example: I have python25.dll in C:\Windows. If I compile the program with py2exe(excluding python25.dll), then try to run the executable I get the following error:

The specified module could not be found.

LoadLibrary(pythondll)failed Does anybody have any idea how to make my app look for python25.dll in C:\Windows?

#2

nevermind.