Shine Anne wrote:
> i heard of py2exe only recently.
> i have an application that uses ctypes to load a DLL.
> this application imports several files. Its main file is "App.py".
> i tried doing in py2exe but getting some errors.
> WindowsError: [Errno 126] The specified module could not be found=20
Windows probably can't find your DLL. Windows has specific rules for =
where it tries to find a DLL. Off the top of my head I think it tries =
the exe's directory and then the path (search =
http://msdn.microsoft.com/library for LoadLibrary to find the right =
answer). I'm guessing your dll is in the directory with your Python =
code. If so, you'll want to use the data_files option in setup.py to =
include it with your exe.