[python-win32] Overlay Icon Question and network drives

Tim Golden mail at timgolden.me.uk
Wed Apr 16 17:56:38 CEST 2008


Andrea Gavana wrote:
> ...If I run it from a Python
> script, the icon overlay works fine but every time I open a file
> dialog from one of my applications I get this nice error in the
> app.exe.log file created by py2exe:
> 
> pythoncom error: PythonCOM Server - The 'win32com.server.policy'
> module could not be loaded.
> 
> <type 'exceptions.ImportError'>: No module named server.policy
> pythoncom error: CPyFactory::CreateInstance failed to create instance.
> (80004005)

My guess is that you've fallen foul of the magic which win32com
does with the path. Probably a case of specifying that module
as a specific inclusion in the py2exe dict in setup.py. But I'm not
really up on py2exe. Worth trying their own mailing list?

TJG


More information about the python-win32 mailing list