Fixed wmi import bug

This commit is contained in:
VakarisZ 2020-08-27 09:01:58 +03:00
parent 1d3f4700c1
commit 3414f39245
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
import sys
if sys.platform.startswith("win"):
import pythoncom
pythoncom.CoInitialize()
import wmi
import wmi
from .mongo_utils import MongoUtils