From: Thomas H. <th...@py...> - 2005-09-30 10:06:34
|
"Jimmy Retzlaff" <ji...@re...> writes: > H.R.Gartenbauer wrote: >> It's working now. > > Good news! > >> win32pipe calls GetModuleFilename(), which fails under py2exe > > Yes, that would be a problem with the way extensions are currently > bundled. GetModuleHandle, GetModuleFilename, etc. will fail to find > .pyd/.dll files that are loaded out of archives (bundle <= 2). They are > not really loaded as true DLLs (i.e., LoadLibrary is never called), so > Windows has no idea they exist. So win32pipe does not work together with the bundle option, it would be nice if these cases were collected in the wiki. In principle it should be possible to make this work (not that I have time for it): Since win32api.pyd is loaded by the LoadLibrary emulation, the loader code could patch the GetModuleHandle/GetModuleFilename functions to use the emulated functions. Whether the result will be usable for what win32pipe needs is another question ;-). Thomas |