I've just joined the list and I'm trying to keep this on response on a thread

Steve Lee, I've not managed to get pyinstaller to build my application yet because I use wxPython and there is currently a problem with the manner in which wxPython loads, however I do have a workaround which I use to load COM modules when building with the old version of McMillan installer. I can't verify that this will work for you but it's quick so you could give it a try.

First off you'll have to import the module I've attached, then call set_gen_path() with the genpath. I forget where I found this comhack but it did help me immensely.

try:
import comhack
   import win32com.client.gencache
   path = win32com.client.gencache.GetGeneratePath()
   comhack.set_gen_path(path)

except:
   print 'Unable to manage COM objects'



Hope that helps,
Mike

Attachment: comhack.py
Description: application/python

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to