andrea gavana ajsacnpyxldxgmailcom hi tim thu apr 17 2008 1157 tim golden wrote andrea gavana wrote update managed make running python script standalone executabledll working fine slowing network connections everything seems fast big thank roger tim kind help thanks update andrea glad could help worth posting solution problems py2exe anyone following thread yes sorry didnt think main problem due way compiled com server py2exe every time opened file dialogs apps got traceback pythoncom error pythoncom server win32comserverpolicy module could loaded module named serverpolicy pythoncom error cpyfactorycreateinstance failed create instance 80004005 took setuppy file tortoisehg modified com server compiled using py2exe option bundle_files1 ie single executable without external dependencies works well curious setuppy file com server begin code setupcomserverpy distutilscore import setup import py2exe import sys import shutil remove build tree always shutilrmtreebuild ignore_errorstrue list modules exclude executable excludes pywin pywindebugger pywindebuggerdbgcon pywindialogs pywindialogslist list modules include executable includes win32comserver modulefinder cant handle runtime changes __path__ win32com uses try doesnt work try import modulefinder import py2exemf modulefinder import win32com p win32com__path__1 modulefinderaddpackagepathwin32com p extra win32comshell win32comserver win32commapi __import__extra sysmodulesextra p m__path__1 modulefinderaddpackagepathextra p except importerror build path setup worries pass set py2exe options setup options py2exe compressed 2 optimize 2 bundle_files 1 dist_dir comdist excludes excludes includes includes lib directory contains everything except executables python dll include subdirectory name zipfile none com_server ksvr_comserver end code hope help someone future thanks help andrea imagination weapon war reality httpxoomeraliceitinfinity77 _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 201831 0100 pythonwin32 overlay icon question network drives