def has_win32com():
if not sys.platform.startswith('<STR_LIT:win32>'):<EOL><INDENT>return False<EOL><DEDENT>try:<EOL><INDENT>mod = __import__('<STR_LIT>')<EOL><DEDENT>except ImportError:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Run this to determine if the local machine has win32com, and if it
does, include additional tests.