Add call to coinitialize.
This commit is contained in:
parent
5f6d291729
commit
7021308c9e
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
try:
|
try:
|
||||||
import winshell
|
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:
|
except ImportError:
|
||||||
winshell = None
|
winshell = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue