diff --git a/voussoirkit/winwhich.py b/voussoirkit/winwhich.py index ed4fcd1..77068e6 100644 --- a/voussoirkit/winwhich.py +++ b/voussoirkit/winwhich.py @@ -14,6 +14,9 @@ import os import shutil try: import winshell + # This fixes some "CoInitialize has not been called" errors which I found + # were occuring intermittently on some subprocess calls. + winshell.pythoncom.CoInitialize() except ImportError: winshell = None